Write the main program to generate random numbers

Assignment Help Basic Computer Science
Reference no: EM13307287

In the project, you are expected to implement a bubble sort algorithm in assembly language, evaluate its performance, and compare the performance with that of your C++ implementation.
Pseudo code for bubble sort is as follows:
procedure bubbleSort( A : list of sortable items )
n = length(A)
repeat
newn = 0
for i = 1 to n-1 inclusive do
if A[i-1] > A[i] then
swap(A[i-1], A[i])
newn = i
end if
end for
n = newn
until n = 0
end procedure
Requirements
1. You are required to use LOOP instruction to implement this nested loop.
2. You are required to use XCHGinstruction to swap elements.
3. To compare the performance, you need to write the main program to generate random numbers to populate a large integer array, and then call the subroutine to sort this array. Remember to get the time before and after the bubble sort to measure the performance.

Reference no: EM13307287

Questions Cloud

Convert this cfg to one with-out the lambda-production then : convert this CFG to one with-out the lambda-Production then.
What is the power required to keep that object in motion : An object weighting 100N is traveling vertically upward from the ground in the absence of air resistance at a constant velocity of 5 m/s
Determine the velocity downstream of the rotor : An early NASA/DOE wind turbine consisted of a 125.0-ft diameter, two-bladed horizontal axis rotor. Maximum power was achieved at a wind speed of 19.0 miles/hr.
Consideration in attracting and retaining human capital : What is that flexibility and treatment according to organizational needs and talent needs that are required to have consideration in attracting and retaining human capital?.
Write the main program to generate random numbers : To compare the performance, you need to write the main program to generate random numbers to populate a large integer array, and then call the subroutine to sort this array. Remember to get the time before and after the bubble sort to measure the ..
How much energy in kilowatt hours would be used : There is 7 total 100 W light bulbs in a parallel circuit your basement, how much energy in kilowatt hours would be used
Review the institute of medicine report : The impact of the IOM report on nursing practice, particularly in primary care, and how you would change your practice to meet the goals of the IOM report.
Determine kinetic energy after the stream has slowed down : A section view of a dam shown and water is stored at an elevation of 6 m above the base. the water flows through the dam in a concreate opening 2m high and 3 m wide. there are no losses or friction.
At what distance is the center of mass from the left end : If a 20kg mass hangs from the right side of a massless bar 5 meters in length and a 5kg mass hangs from the left side of the bar

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Create an application that allow a new customer order house

Create an application that will allow a new customer to order a house. You'll allow the customer to choose among four models (Aspen, Britattany, Colonial, and Dartmoor) by creating separate ButtonGroups.

  How it utilizes it and did the designer or programer choose

1-direct manipulation 2-menu selection 3-form fill-in 4-command language 5-natural language For each one,provide a software example you've used that utilizes it, and how it utilizes it and did the designer or the programer choose the correct style..

  Draw a flow chart, hierarchy chart

Draw a flow chart, hierarchy chart, and write pseudocode for the following problem. • A weather sensing system calculates & prints a report on the following: ? Average temperature ? Highest temperature ? Lowest temperature ?

  Create a customer experience strategy

Include components of customer service model reognized within your text. How would you use them to create a customer experience strategy?

  Explaining service strategy or service design

Select a topic that most interests you from Service Strategy or Service Design and then write a paper around that topic. Try to use as much of your own creativity and originality when writing the paper.

  Using a truth table or equivalent determine following

Using a Truth Table or equivalent determine

  Characteristics of risc directly implemented in cisc system

Why do RISC machines operate on registers? Which characteristics of RISC systems could be  directly implemented in CISC systems.

  Name, number of years that he or she has worked

For each employee: name, number of years that he or she has worked for the company, whether or not they are interested in the new work position.

  Write a program in c++ for a server

Write a program in C++ for a server (called math solver) which solves three math problems: factorial (i.e. n!), exponent with base 2 (i.e. 2n), and cube (i.e. n3).

  Cores on computer systems

Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency,

  Designing a game system

Suppose that you are designing a game system that responds to players' pressing buttons and toggling joysticks. The prototype system is failing to react in time to these input events.

  Design and implement a graphical user interface (gui)

Design and implement a graphical user interface (GUI) that lets a user draw geometric objects such as rectangles, circles or line segments. The geometric objects are two be "entered" with clicks of the mouse

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