Suppose program P1 requires T1(n) = n4 operations and P2 requires T2(n) = 2n. Suppose that your machine executes 106 operations per second. If n = 1,000, what is the running time of these programs?
Suppose program P1 requires T1(n) = n4 operations and P2 requires T2(n) = 2n. Suppose that your machine executes 106 operations per second. If n = 1,000, what is the running time of these programs?
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Suppose program P1 requires T1(n) = n4 operations and P2 requires T2(n) = 2n. Suppose that your machine executes 106 operations per second. If n = 1,000, what is the running time of these programs?
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 1 images