Demonstrate which option gives better expected performance

Assignment Help Basic Computer Science
Reference no: EM131361897

A company database consists of 10,000 sorted names, 40% of whom are known as good customers and who together account for 60% of the accesses to the database. There are two data structure options to consider for representing the database:

• Put all the names in a single array and use binary search.

• Put the good customers in one array and the rest of them in a second array. Only if we do not find the query name on a binary search of the first array do we do a binary search of the second array. Demonstrate which option gives better expected performance. Does this change if linear search on an unsorted array is used instead of binary search for both options?

Reference no: EM131361897

Questions Cloud

Analyze the prioritizing process at d d williamson : Write a four to six (3-5) page paper in which you: Analyze the prioritizing process at D. D. Williamson. Suggest two (2) recommendations to improve the prioritizing process
Write paper that traces history and development of pr in us : Write a paper that traces the history and development of PR in the United States. Pay special attention to each of the distinct stages. The requirements below must be met for your paper to be accepted:
What were core arguments of his common sense ideology : How did the ideology of Thomas Paine's pamphlet help shape the American Revolution? What were the core arguments of his Common Sense ideology?
Develop a business assessment for the company : Develop a business assessment for the company, focusing on managing employees from an HR perspective in a grocery store environment and retail industry
Demonstrate which option gives better expected performance : Demonstrate which option gives better expected performance. Does this change if linear search on an unsorted array is used instead of binary search for both options?
How did the american colonists-rebel fight the revolution : How did the American colonists/ rebel fight the revolution?
How adobe went about establish postscript as dominant design : Discuss how Adobe went about establishing postscript as the dominant design in page description software. What steps did they take? How did they drive adoption?
Read the article titled what is strategy : Read the article titled "What Is Strategy?" located at HBR--What is Strategy_Porter.pdf. Read the article titled "Eight Maxims of Strategy", located at http://www.nickols.us/maxims.pdf.
Are you eager or fearful of going into the wartime factories : The list below includes some provocative discussions related to the events in this unit's reading. Choose one of the five topics to write about. Compose a one-page essay in which you will take a first-person perspective of the situation, describe ..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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