What are the big-O notations for the following functions? Show your proofs. (B4) n³ log(3n)+ 2nª + 3n² + 127 (B5) V2n + 30log(4n)² + 27n – 3 (В6) (п + 1)! + 27 (B7) Vn2 + 3n log²(2n) + 4n7

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
icon
Related questions
Question

There is a hint for each questions

What are the big-O notations for the following functions? Show your proofs.
(B4) n³ log(3n) + 2nª + 3n² + 127
(B5) V2n + 30 log(4n)² + 27n – 3
(B6) (n + 1)! + 2"
(B7) Vn2 + 3n log²(2n) + 4n7
Transcribed Image Text:What are the big-O notations for the following functions? Show your proofs. (B4) n³ log(3n) + 2nª + 3n² + 127 (B5) V2n + 30 log(4n)² + 27n – 3 (B6) (n + 1)! + 2" (B7) Vn2 + 3n log²(2n) + 4n7
B4. n³ log(3n) + 2nª + 3n² + 127
What will be the leading term? What is of higher order n³log(3n) or 2n*? Or
equivalently, log(3n) vs n. Recall the long-term log property in Lecture 03.
Hint: Big-O (n*)
2n* < 2 x n*
n³ log(3n) < 1 x n* (when n 2 ?)
3n? < 3 × n* (when n2?)
127 < 127 × n* (when n >?)
B5. V2n + 30 log(4n) + 27n – 3 = v2 x n7 + 30 log(4n) + 27n – 3
Hints: Big-0 (n)
B6. Hint: Big-O((n + 1)!)
2
B7. Vn? + 3n log²(2n) + 4n7 = n3 + 3n log²(2n) + 4n7
Hint: Big-0 (n log²(2n))
Transcribed Image Text:B4. n³ log(3n) + 2nª + 3n² + 127 What will be the leading term? What is of higher order n³log(3n) or 2n*? Or equivalently, log(3n) vs n. Recall the long-term log property in Lecture 03. Hint: Big-O (n*) 2n* < 2 x n* n³ log(3n) < 1 x n* (when n 2 ?) 3n? < 3 × n* (when n2?) 127 < 127 × n* (when n >?) B5. V2n + 30 log(4n) + 27n – 3 = v2 x n7 + 30 log(4n) + 27n – 3 Hints: Big-0 (n) B6. Hint: Big-O((n + 1)!) 2 B7. Vn? + 3n log²(2n) + 4n7 = n3 + 3n log²(2n) + 4n7 Hint: Big-0 (n log²(2n))
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps with 4 images

Blurred answer
Recommended textbooks for you
Database System Concepts
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)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education