Efficiency of variable n using big-o notation

Assignment Help Computer Engineering
Reference no: EM1315579

1) Consider following loop construct:

X := 1
repeat
Y := N
while Y > 0 do
. . . // something (the ellipsis)
Y := Y - 1
endwhile
X := X + X
until X > N * N

Classify its efficiency in terms of the variable N utilizing the big-O notation. Also, suppose that statements represented by the ellipsis need four chief memory accesses with each access requiring 1 microsecond, and two disk file accesses with each requiring 1 millisecond. Express this in milliseconds the amount of time this construct would be needed in order to execute if N = 1000.

Reference no: EM1315579

Questions Cloud

Determining standard deductions with standard deviation : Survey of 16 tax returns reports families with incomes between $75,000 and 100,000 have on average $8,562 in Standard Deductions with the standard deviation of $1,800.
Laws of supply and demand : D&Z Dry Foods Distributions specializes in the whole distribution of dry goods, such as rice and dry beans. The firm's manager is concerned about an article he read in the morning's Wall Street Journal
Find all the subfield of k containing q : Find all the subfield of K containing Q.
Advantages and limitations of simple linear regression model : Why is estimating a multiple regression model just as easy as bivariate regression?
Efficiency of variable n using big-o notation : Classify its efficiency in terms of the variable N utilizing the big-O notation. Also, suppose that statements represented by the ellipsis need four chief memory accesses with each access requiring 1 microsecond.
Multiple choice questions on jit : Multiple choice questions on JIT and actions are likely to reduce the length of a company's cash conversion cycle?
Estimate the galois group : Estimate the galois group.
Firm pricing rule and profit maximization : The Hanover Manufacturing Company believes that the demand curve for its product is P = 5 - Q-Evaluate the wisdom of the firm's pricing policy
Computation of price of the bond : Computation of price of the bond and The market requires an interest rate of 8% on bonds of this risk

Reviews

Write a Review

Computer Engineering Questions & Answers

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Identify connectivity of each relationship

Identify connectivity of each relationship

  Write down python program

Write down Python program

  Determinining possible roots of equation

Utilize the Bisection Method in order to determine the first possible root of the following given functions: execute in fifteen (10) iterations/cycle. Present your tabulated solution or spread.

  Problem on encryption using a one-round version of des

Problem on encryption using a one-round version of DES.

  What occurs in an infinite loop

What occurs in an infinite loop? Create your own Repeat-until repetition arrangement.

  What are prospect trends for healthcare informatics

What are prospect trends for healthcare informatics.

  What profit do you see with partitioned view

Explain your idea for a database along with your thoughts for a partitioned view. 1. How will you use this partitioned view?

  Hardware support to memory management

Study any two multicore processor architecture and discuss the following features briefly

  Structured query language

Structured Query Language (SQL) refers to the accepted non-procedural language used in order to communicate with all the relational databases.

  Create a .plan file using pico/nano

Create a .plan file using PICO/NANO

  How to write code for selection sort, insertion sort

How to write code for selection sort, insertion sort. Using your performance of selection, bubble and insertion sort, add a counter in an appropriate place so as to measure the runtime of your code for example this capacity be a counter to track ..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd