Perform the timing tests, you will set the starting size

Assignment Help Computer Engineering
Reference no: EM133241258

Question: C++ console app, applying the timing test code to an operation that requires scanning the entire vector of names read from the file.

You're looking for some operation that's close to O(n) here. Here are a few examples of loops that would work:

Finds the shortest name in the array
Finds the longest name in the array
Counts how many times a particular first name occurs, like "Victoria"

To perform the timing tests, you will set the starting size with the variable 'n' at the top of main(), which controls how many lines your algorithm will use for input. Also set 'bigOh', which represents your "guess" about your algorithm.

Start with n = 50,000 for the first cycle, and set bigOh to O(n) -- that is, we expect that the time it takes to read the file is directly proportional to the number of lines read from the file.

It is possible that caching may throw off the timing for the first cycle, so run your program more than once to see it work correctly. Your timings will not be an exact match for the 'expected' amounts each time, but should be close.

Reference no: EM133241258

Questions Cloud

What does faustus do with his magical powers : What does Faustus do with his magical powers? How would you evaluate his use of these powers? Does Mephistopheles aid Faustus in his quest for knowledge
Differentiate common assessment procedures : 1. Differentiate common assessment procedures used to assess vision and hearing across the life span.
Which evaluation measure do we use for classier : Which evaluation measure do we use for classier? Accuracy, precision, and/or recall? Justify your answer
Assignment on collaboration cafe : Select one international healthcare system to compare and contrast with the Unites States healthcare system. Or, you may select two international healthcare del
Perform the timing tests, you will set the starting size : COMSC 210 Diablo Valley College perform the timing tests, you will set the starting size with the variable 'n' at the top of main(), which controls how many
Discuss welfare in terms of a current event : You are going to discuss Welfare in terms of a current event. Your initial post and peer reply should each consist of approximately 150-200 words.
Find medical history of gerd : You are working in an ER and your next patient to see is a 47 year old female who began having trouble breathing 3 days ago. She felt like it has gotten a littl
Describe technology disruption in healthcare : Describe technology disruption in healthcare and its impact on a mental health inpatient unit.
Provide a code where it asks for the order : 1503 University of the Fraser Valley choose that choice for both char and integer. Can you provide a code where it asks for the order for both char and integer

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  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.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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