Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 7: (a) Consider a graphic program that is bouncing balls on the screen. Balls are stored in memory. There is initially one ball and

image text in transcribed

Question 7: (a) Consider a graphic program that is bouncing balls on the screen. Balls are stored in memory. There is initially one ball and every second the program adds one ball for every ball already on the screen. Using O() notation, indicate how memory requirements grow over time. Justify your answer. (2 marks) (b) How long will it take to have a billion balls (!) bouncing on the screen? How much memory will it require, if each ball object uses 25 bytes? Comment on the results obtained e.g., how realistic is this scenario? (2 marks)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts Of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

4th Edition

ISBN: 0619064625, 978-0619064624

More Books

Students also viewed these Databases questions

Question

7. Where Do We Begin?

Answered: 1 week ago

Question

3. Are our bosses always right? If not, what should we do?

Answered: 1 week ago