Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 . 3 . For this exercise, you want to recall how to write integers in binary ( base - 2 ) notation. Exam -

1.3. For this exercise, you want to recall how to
write integers in binary (base-2) notation. Exam-
ple: the (decimal)5 in binary is written as 101.
Also, lgx means "logarithm base-2 of x."
(a) What is |~lg35~|?
(b) What is |??lg35??|?
(c) Write 35 in binary (base-2 notation).
(d)(True/False) The number of bits used to
represent 35 in binary is equal to |~lg35~|.
(e)(True/False) The number of bits used to
represent 32 in binary is equal to |~lg32~|.
1.4. Doing exercise 1.3 first will help you think
this one through. You may assume n and k are
non-negative integers.
(a)(True/False) If n=2k, then |~lgn~|=k.
(b)(True/False) If n=2k, then |??lgn??|=k.
(c)(True/False) Any integer n can be written as
2k-1n2k,(sandwich any {:n?)
(d) How many bits does it take to write a number
n such that 2k-1n2k?
(e) In exercise 1.3(a) you concluded that
|~lg35~|=6, and in exercise 1.3(d) you con-
cluded that the number 35 is six bits long: 35
in binary is 100011.
So, is it true that |~lgn~| is the length of n writ-
ten in binary? Explain your answer clearly.
image text in transcribed

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: 3

blur-text-image

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

Advances In Databases And Information Systems Second East European Symposium Adbis 98 Poznan Poland September 1998 Proceedings Lncs 1475

Authors: Witold Litwin ,Tadeusz Morzy ,Gottfried Vossen

1st Edition

3540649247, 978-3540649243

More Books

Students also viewed these Databases questions

Question

=+44-6 Discuss predictors of happiness and how we can be happier.

Answered: 1 week ago