What is the o-notation for this algorithm

Assignment Help Computer Engineering
Reference no: EM13323681

The approximate number of iterations of an algorithm with data size N is determined to be:

1 + 2 + 3 + ... + N

a. Write a table that shows N and the number of iterations for the first 10 values of N.

b. What is the O-notation for this algorithm?

 

Reference no: EM13323681

Questions Cloud

How far does the platform float above the water surface : a floating platform is supported at each corner by a hollow sealed cylinder 1 m in diameter, the platform itself weighs 25kN in air and each cylinder weighs 1.2kN per meter of length.
Determine number of bolts necessary to make max shear stress : Assuming that the shear stress in the bolts is uniform, determine the number of bolts necessary to make the maximum shear stress in the shaft equal to the shear stress in the bolts. Each bolt has a diameter d.
Write a program to apply combination of transformation : Write a program to apply combination of transformation, rotation, reflection and shearing) on the following objects.
What ordering results in an optimal tree : Inserting the values in different orders results in different shapes of trees. What ordering results in an optimal (complete) tree? Show the resulting tree.
What is the o-notation for this algorithm : Write a table that shows N and the number of iterations for the first 10 values of N.
Write a class relationship between these classes : Write a class relationship between these classes that reflects this relationship. Details of other members are not important.
Write a member function called display : Write a member function called Display that displays the elements of an object of type queueClass. Assume the pointer-based queue is in use, and note that you are writing a member function of the class, so you have access the private data members.
Determine location of the centroid relative to the channel : A trapezoidal river channel section has a base dimension of 30 feet, a liquid depth of 4 feet, and side slopes of 4 to 1 (horizontal to vertical).
Modify the stack directly or use the existing pop operation : To implement this operation, you could either modify the stack directly or use the existing Pop operation. What would be the advantages and disadvantages of each method?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Why computer system problem in an instructional lab

make an input form that could be used to record information about a computer system problem in an instructional lab or a training facility. Include spaces on the form to record information

  Cityquery and productquery

Create a report by the city and another by the product, involving details of sales and sub-totals and totals for the quantity.

  Different visual basic command

Write down the visual basic command in order to Load a LVM file ( file name: Data.lvm), Delete the first 22 row , Insert a new column from 0 to last row of file with increment of 0.1 ( For example, if there are 25 rows in Data.lvm; then 25-22=3, it w..

  Compiler would not compile the line of code in the center

In the following lines of code, the Miracle C compiler will not compile the line of code in center (float x = 1/a;). Why does this occur? How can it be corrected.

  Write down a program that, given the amount of a purchase

note down a program that, given the amount of a purchase and the amount received in payment, computes the change in dollars, half-dollars, quarters, dimes, nickles, and pennies.

  Create class complex for working with complex numbers

modify class Complex for working with complex numbers of the form a + bi, where i is square root of -1. Your class must have two overloaded operators for adding and subtracting the complex numbers.

  Implementing the program for carrying out the calculation

Write down a program that has a function named presentValue which carry out this calculation. The function must accept the future value, annual interest rate, and number of years as arguments.

  Define contrasting two major enterprise resource planning

recognize two major segments ERP systems. define contrasting two major Enterprise Resource Planning.

  The c++ libraries on strings have many functions

The C++ libraries on strings have many functions that can be used to handle various string operations. Write a function called stringlast that can be used to find the last n characters in a string and return a pointer to this new string

  What is the multicast

examine and discuss what the UDP does and its relationship to TCP - - - in what ways is it similar and different, and why (what applications) would we use UDP, and why can't a user program access IP directly.

  How a first responder will identify and preserve evidence

the video South Tower Falls, Shot Front of Trinity Church, describe your concerns as a first responder. (For the purpose of your response assume that you do NOT know whether this is a chemical, biological, radiological, nuclear, or simple explosiv..

  Process that handles the customervalidator''s servervalidate

Write down a method that handles the CustomerValidator's ServerValidate event. In addition, write a JavaScript function for the CustomValidator's CustomValidationFunction property. Each method should verify that the user entered an integer in each..

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