Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3:0 X :- 1 Consider the following algorithm. y : n while (x < y) do for i:=1 to n do j : j

 

3:0 X :- 1 Consider the following algorithm. y : n while (x < y) do for i:=1 to n do j : j + 5 end for X=X+2 yy / 2 end while What is the "smallest" big-oh (O()) notation for the above algorithm? Question 16. (4 points) The Fundamental Theorem of Arithmetic states: "Every positive integer greater than 1 can be written uniquely as a prime or as the product of primes, where the prime factors are written in order of nondecreasing size." What is the prime factorization of the integer 90? Question 17. (3 points) For the decimal value 1911o what would be its binary value (base 2)?

Step by Step Solution

3.45 Rating (158 Votes )

There are 3 Steps involved in it

Step: 1

For the given algorithm x 1 y n while x y for i 1 to n do ... 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_2

Step: 3

blur-text-image_3

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

Discrete and Combinatorial Mathematics An Applied Introduction

Authors: Ralph P. Grimaldi

5th edition

201726343, 978-0201726343

More Books

Students also viewed these Programming questions