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

  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