Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Recall that normally we assume that numbers are represented as string using the binary basis. That is , a number n is represented by the

Recall that normally we assume that numbers are represented as string using the binary basis.
That is, a number n is represented by the sequence x0, x1,..., xlogn such that n =
logn
i=0
xi2
i
,
where for each i in [0..logn] xi in {0,1}. However, we could have used other encoding
schemes. If n in N and b >=2, then the representation of n in base b, denoted by [x]b is
obtained as follows: first represent n as a sequence of digits in {0,...,b 1}, and then
replace each digit d in [0..b1] by its binary representation. The unary representation of n,
denoted by [n]1 is the string 1n
(i.e., a sequence of n ones).
(a) Show that choosing a different base of representation will make no difference to the
class P. That is, show that for every subset S of the natural numbers, if we define
L
b
S ={[n]b : n in S} then for every b >=2, L
b
S in P L
2
S in P.

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

Readings In Database Systems

Authors: Michael Stonebraker

2nd Edition

0934613656, 9780934613651

More Books

Students also viewed these Databases questions