Briefly the differences in output of the various versions

Assignment Help Basic Computer Science
Reference no: EM13936243

1. Explain briefly the differences in output of the various versions of the algorithms, and why they are different. Are they all correct?

2. Use the "time" option on linux to capture the experimental run-time of the various versions of your algorithms, on various sizes of inputs. The sizes to report are 50 elements, 50 commands; 50 elements 1000 commands; 1000 elements 1000 commands; and 1000 elements 10000.

3. Give estimates of the big-O running times that are suggested by these results.Here is an example of an input file, called in.11.8 11
u 5 7
f 7 5
f 5 3
u 9 10 f 2 4
u 1 10
u 2 8
f 1 6
d

To time an execution of testappQU on input and put the output to a file called out.11.8, use the command "time testappQU > out.11.8" The first number is the number of elements. "u 5 7" means execute a
"merge(5,7)" operation. "f 7 5" means execute a "find(7,5)" operation. The following little perl script will help you generate input files for testing.gen
You can copy/paste it into a file. To make it executable, change the permissions using the following command:
chmod a+rx gen
To invoke the perl script, use the command
./gen

and to direct the output to a file, use ./gen > filenameHere You can read the file gen (and edit it) to see what it does. It does not prompt for input (for easyoutputting to a file) but it does require two inputs, the first is the number of elements, the second is the number of operations. Note that all the files end in"d", for debugprint.

Reference no: EM13936243

Questions Cloud

Case study - choicepoint : ChoicePoint is not a household name, nor do we aspire to be. What we do seek is to help create a safer, more secure world through the responsible use of information.
How many product lines should the organization identify : What are the advantages and disadvantages of a matrix model for GHE in terms of direct and indirect costs as well as benefits, such as improved coordination? How many product lines should the organization identify
Political and legal trends affecting fast food consumption : Discuss the demographic, sociocultural, economic, technological, natural, political and legal trends affecting fast food consumption
Compare costs calculate for table two to costs calculated : Assume that fixed costs remain at $250. When the price of a variable input changes which other costs will increase? Compare the costs you calculate for table two to the costs calculated in table one to find your answers.
Briefly the differences in output of the various versions : Use the "time" option on linux to capture the experimental run-time of the various versions of your algorithms, on various sizes of inputs. The sizes to report are 50 elements, 50 commands; 50 elements 1000 commands; 1000 elements 1000 commands; a..
Write a program that opens a file and reads in two vectors : Write a program that opens a file, reads in two vectors, and then computes their dot product
Compare output levels in settings characterized by cournnot : Two firms compete in a market to sell a homogeneous product with inverse demand function P = 400 - 2Q. Each firm produces at a constant marginal cost of $50 and has no fixed costs. Use this information to compare the output levels and profits in sett..
How this disease is affecting different racial groups : Compare and contrast how this disease is affecting different racial and ethnic groups. On the basis of your calculations, what information can you conclude
Javascript techniques to improve usability : Design a suitable applied web form example which has a work context. The form that needs to be created is a contact form for a Student Forum. Design the form which must have user input and a range of form furniture Ie. Buttons/ user Input fields. ..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Problem regarding fat file system-ntfs file system

You have been asked to document, in a white paper, information about the file allocation table (FAT) and the new technology file system (NTFS).

  What variables exist in memory just before the statement

During the execution of the program above, what variables exist in memory just before the statement "printf("a[0] = %d, b = %d\n", a[0], b);" executes, and what are their values?

  Design a program that will allow a user to input a list

Design a program that will allow a user to Input a list of your married male friends name (first and last name) along with their weight and first name of their spouse.

  The success of 24-bit digital audio technologies

3. A company noting the success of 24-bit digital audio technologies compared to earlier 16-bit digital audio technologies has decided to work on developing a 28-bit digital audio technology. a. Describe the type of signal conversion being utilized a..

  Compute the global boolean or of all input values on ring

Consider an anonymous ring of size n. Each node v stores an input boolean value i(v). When the algorithm terminates, then every node is to store the output in its private variable. Every node knows n, in that n can be a part of code.

  Write a program that reads an integer

Write a program that reads an integer, n, and prints each of its digits from left to right, as an English word.

  Show the ieee 754 bit pattern

Show the IEEE 754 bit pattern for the subsequent numbers (assume excess 127):

  What would be the effects on the business resources

which phase of the SDLC do you think is the most important phase to this business, and why? What would happen if the organization didn't do a good job in that phase? What would be the effects on the business resources of time, money, and people?

  Full description of the new system

Full description of the new system, a description of its components, and the benefit it will provide to Riordan

  What is difference between the memory bus and the pci bus

What is the difference between the memory bus and the PCI bus? Most 32-bit buses permit 16-bit reads and writes. Is there any ambiguity about where to place the data? Discuss.

  Create a pseudo code users allow

Please create a pseudo code that would allow users to enter and submit survey (to store in the database) and display survey results of total entered surveyed

  Write a program to allow additional items and prices

Write a program to allow additional items and prices to be input by the user and added to the end of the Cowboy.txt. Include a method to terminate the process.

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