Recent content by lina29

  1. L

    Statistical Definitions and Statement: X, S^2, μ, σ^2, True or False

    Homework Statement Let X1,…,Xn denote a random sample from a population with mean μ and variance σ^2. Assume that both μ and σ^2 are finite but unknown. Let X denote the sample mean and S^2 denote the sample variance. Are the following statements true or false? A-There is no difference...
  2. L

    M/M/1 Queue System: Calculating A, B, C

    Thank you! so for A-10 and for C-.2 which were correct I'm still stuck on part B though. I know I'm supposed to find out P(X<5) but I don't know how I'm supposed to find it
  3. L

    M/M/1 Queue System: Calculating A, B, C

    Homework Statement For an M/M/1 queuing system with the average arrival rate of 0.4 min^−1 and the average service time of 2 minutes, compute A- the expected response time in minutes; B- the fraction of time when there are more than 5 jobs in the system; C- the fraction of customers who...
  4. L

    How to Store User Input as Memory in MIPS Assembly

    To be honest I'm still having trouble # division.asm .data intI: .word 0 intJ: .word 0 prompt1: .ascii "\nEnter i: " prompt2: .ascii "\nEnter j: " str1: .asciiz "\nThe quotient of " str2: .asciiz "and " str3: .asciiz "is " str4: .asciiz " and the remainder is " str5: .asciiz "." .text...
  5. L

    How to Store User Input as Memory in MIPS Assembly

    # division.asm .data intI: .asciiz "\nEnter i: " intJ: .asciiz "\nEnter j: " str1: .asciiz "\nThe quotient of " str2: .asciiz "and " str3: .asciiz "is " str4: .asciiz " and the remainder is " str5: .asciiz "." .text main: li $v0, 4 # system call code for print_string la $a0...
  6. L

    How to Store User Input as Memory in MIPS Assembly

    Homework Statement Write a routine that accepts two integers i and j as arguments, calculates the quotient and remainder of i and j, and generates a string in memory that stores "The quotient of i and j is i/j and the remainder is i%j". For example if the arguments was 15 and 7 the string in...
  7. L

    Bernoulli Process Statistics

    Homework Statement Consider Bernoulli single-server queuing process with an arrival rate of 2 jobs per minute, a service rate of 4 jobs per minute, frames of 0.2 minutes, and a capacity limited by 2 jobs. Compute the steady-state distribution of the number of jobs in the system. Homework...
  8. L

    Markov Chain Statistics

    Homework Statement A taxicab moves between the airport, Hotel A, and Hotel B according to a Markov chain with transition probabilities: P(airport → A) = 0.7, P(airport → B) = 0.3, P(A → airport) = 0.9, P(A → B) = 0.1, P(B → airport) = 0.8, P(B → A) = 0.2. A-If the taxicab starts...
  9. L

    Hash Tables Linear Probing and Double Hashing

    We're supposed to list the probes by the place is should initially be at. if that spot is filled then we advance to the next spot until we find an empty spot
  10. L

    Hash Tables Linear Probing and Double Hashing

    We're supposed to assume the interval is 1. I'm not sure I understand what you mean but you know a collision occurs when both keys have the same h(x) like keys 10 and 43 both have h(x) as 10
  11. L

    Hash Tables Linear Probing and Double Hashing

    Homework Statement Consider a hash table T with 11 entries and the hash function h(x) = x mod 11. Show the result of hashing the keys 10,16,11,43,33,13,14,12,3, and 22, assuming collisions are handled by (a) open addressing with linear probing (b) double hashing using a secondary hash...
Back
Top