
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question
CPU clock = 1 GHz, 1 OP is 5 clock cycles (arithmetic instruction, conditional, etc.).
1 memory access uses 100 clock cycles (Read or Write),
Problem size: N = 1,000,000 (1 million).
sum = 0
for i in range(0,N):
sum += i
print(“sum = “, sum)
How many arithmetic instructions and memory accesses are required by this algorithm? How many clocks and CPI are required by this algorithm? What is the estimated execution time for this algorithm in seconds or fractions of seconds, not counting the print and any problem setup?
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 3 steps

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Algorithm: sum = 0 for i i n range(0,1000000): sum += i print(sum) How many arithmetic instructions are required by this algorithm? How many memory accesses are required by this algorithm? How many clocks are required by this algorithm?arrow_forwardGiven an instruction sequence with instructions in classes A, B, and C as the table below: Instruction Class A B C |CPI Instruction Count|10|40|10| 2 1 3 Total number of instructions in this sequence = Number of clock cycles from instruction class A = Number of clock cycles from instruction class B = Number of clock cycles from instruction class C = Total number of clock cycles = Average CPI for this instruction sequence = (Answer with a float the decimal point, e.g. 4.5)arrow_forwardHave a question requiring an answer in assembly languagearrow_forward
- i had no time left .solve with in 10minutes . please don't copy copy you can skip if you can't do else i downvotearrow_forwardExplain me please step by step the answer is pc is 007 and ac 0077arrow_forwardWrite a MARIE program simulation the following Python code. The MARIE program must generate the output similar to Python's. The program must have a loop. Python code: num = [1,2,3,4,5,6]for i in num: print (i) This is what I have so far but it only prints from 1 to infinity: ORG 100START, LOAD NUM STORE COUNT OUTPUT LOAD NUM ADD ONE STORE NUM LOAD NUM SUBT COUNT SKIPCOND 400 // Salta si COUNT < NUM JUMP START HALT ONE, DEC 1NUM, DEC 1COUNT, DEC 1 END STARTarrow_forward
- two different processors execute same instructions, Processor one has 4Ghz clock rate and 1.5 CPI, processor two has 1.3GHz and 2.2 CPI. 1)find the processor with the highest performance expressed in instructions per second 2)if both processors execute a program in 15seconds, what is the number of cycles and instructionsarrow_forwardPlease compute for the CPU utilization:arrow_forwardTrace the execution of the following "Super Simple CPU" program and for a) each step record the values of the Accumulator, Mem[10] (memory location 10), Mem[11], and Mem[12]. The values before the execution starts are shown. LOD 11 XXX ТОР JZR JNG SUB 10 STO 11 YYY JMP TOP XXX LDI 1 STO 12 STP LDI 0 YYY STO 12 STP Mem[10] Mem[11] Mem[12] Accumulator 12 24 15arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education