Prove or disprove the given statements

Assignment Help Computer Engineering
Reference no: EM132250208

Mathematical Expression and Reasoning for Computer Science Assignment -

Question 1 - Induction and sequences

Consider the following definition of a sequence of numbers:

1975_figure.png

For example, d0 = 1, d1 = 1, d2 = 2, d3 = 3/2, and d4 = 8/3. Our goal is to prove the following statement: "For all natural numbers n, dn > √n if and only if n is even."

Complete the following two proofs, which together will prove the above statement.

(a) Prove the following using induction: ∀n ∈ Z+, d2n-1 ≤ √(2n - 1).

Hints: in the induction step, write d2k+1 in terms of d2k-1 using the given definition of the sequence. Later as an intermediate step, use difference of squares: (2k - 1)(2k + 1) = 4k2 - 1.

(b) Prove the following (with or without using induction): ∀n ∈ N, d2n > √(2n).

You may use the statement you proved in part (a) in this part.

Question 2 - Number Representations

As you might suspect, it is possible to represent numbers in other ways besides decimal (base-10) and binary (base-2). One intriguing representation is balanced ternary.

In balanced ternary, numbers are represented as sequences of digits (dk-1dk-2 · · · d1d0)bt, where each digit di is T, 0, or 1, with "T" used to represent the value -1. The value of sequence (dk-1dk-2 · · · d1d0)bt is then simply i=0Σk-1di × 3i.

For example, (T01)bt represents the number (-1) × 32 + 0 × 31 + 1 × 30 = -9 + 1 = -8.

(a) (i) Write the decimal value of the balanced ternary number (T011T)bt.

(ii) Write the balanced ternary representation of the decimal number 210 that doesn't have any leading zeroes.

(b) Prove using induction that ∀n ∈ Z+, 6|3n - 3.

(c) Let x ∈ N and n ∈ Z+. We say that x is n-digit positively balanced if and only if it has a balanced ternary representation (dn-1dn-2 · · · d1d0)bt in which none of the digits are equal to T. For example, the decimal number 31 is 4-digit positively balanced, with the representation (1011)bt, and it also is 6-digit positively balanced, with the representation (001011)bt.

Prove, by induction, the following statement:

∀n ∈ Z+, ∀x ∈ N, (x is n-digit positively balanced) ⇒ 6 | x - 2 ∧ 6 | x - 5

You may use part (b) and the Quotient-Remainder Theorem (QRT) in this question.

Question 3 - Properties of Asymptotic Notation

Prove or disprove each of the following statements.

You may use the "max", ceiling, and floor functions in your solutions. However, you may not use any external facts of Big-Oh/Omega/Theta, and instead should only be using their definitions in your proofs.

The following definitions apply to part (d).

Definition 1 (non-decreasing). Let f : N → R≥0. We say that f is non-decreasing if and only if for all x, y ∈ N, if x ≤ y then f(x) ≤ f(y) (note that f(x) and f(y) can be equal).

Definition 2 (power of two). Let n ∈ N. We say that n is a power of two if and only if there exists a k ∈ N such that n = 2k.

Note - Need Only Question 3.

Attachment:- Assignment File.rar

Reference no: EM132250208

Questions Cloud

Discuss possible quality control issues with moocs in india : Discuss possible quality control issues with MOOCs in India. For each issue, explain how you would solve the problem.
Analyze the alignment between the given components : Analyze the alignment between these components, including areas of misalignment. Explain the level of alignment between these specific components.
Discuss the work required to conduct meaningful : Discuss the work required to conduct meaningful and accurate quantitative analysis in a dissertation.
Practice concept of accountable care organizations : Appalachian Medical is a multidisciplinary medical practice that has embraced the community-of-practice concept of Accountable Care Organizations (ACO).
Prove or disprove the given statements : CSC165H1: Mathematical Expression and Reasoning for Computer Science Assignment, University of Toronto, Canada. Prove or disprove the given statements
What is the longest amount of time a patron : What is the longest amount of time a patron can spend at the hot springs and still receive the discount? minutes. Mean= 69 SD=16
Determine the analysis technique for this project : Determine the analysis technique for this project and explain why. Determine the methodology for this project and explain why.
An atom in an excited state temporarily stores energy : If the lifetime of this excited state is measured to be 1.0×10-10s, what is the minimum uncertainty in the energy of the state in eV?
Specific measure of supply chain performance : Which of the following is NOT a specific measure of supply chain performance?

Reviews

len2250208

3/7/2019 1:32:23 AM

Please read the following instructions carefully before starting the problem set. They contain important information about general problem set expectations, problem set submission instructions, and reminders of course policies. Your problem sets are graded on both correctness and clarity of communication. Solutions that are technically correct but poorly written will not receive full marks. Please read over your solutions carefully before submitting them.

len2250208

3/7/2019 1:32:17 AM

Solutions must be typeset electronically, and submitted as a PDF with the correct filename. Hand-written submissions will receive a grade of ZERO. Problem sets must be submitted online through MarkUs. If you haven't used MarkUs before, give yourself plenty of time to figure it out, and ask for help if you need it! If you are working with a partner, you must form a group on MarkUs, and make one submission per group. \I didn't know how to use MarkUs" is not a valid excuse for submitting late work. Your submitted file(s) should not be larger than 9MB.

len2250208

3/7/2019 1:32:10 AM

You might exceed this limit if you use a word processor like Microsoft Word to create a PDF; if it does, you should look into PDF compression tools to make your PDF smaller, although please make sure that your PDF is still legible before submitting! Submissions must be made before the due date on MarkUs. You may use grace tokens to extend the deadline; please see the Homework page for details on using grace tokens. The work you submit must be that of your group; you may not use or copy from the work of other groups, or external sources like websites or textbooks.

len2250208

3/7/2019 1:32:04 AM

Additional instructions - When doing a proof by induction, always label the step(s) that use the induction hypothesis. You may not use forms of induction we have not covered in lecture. Please follow the same guidelines as Problem Set 2 for all proofs (although of course you may use induction on this problem set!).

Write a Review

Computer Engineering Questions & Answers

  Implementing a map data structure

In this project you will be implementing a map data structure. A map is a way to store data with a key and a value.

  Describe the three types of modification anomalies

In this assignment, you will analyze the role of data normalization in avoiding the three types of modification anomalies. According to Edgar F. Codd.

  Describe the importance of and method of establishing

establishing an effective information technology security policy framework is critical in the development of a

  Write a function to swap odd and even bits of a 32-bit

Write a function to swap odd and even bits of a 32-bit integer with as few instructions as possible

  Write a program that animates two cars moving across a frame

Write a program that animates two cars moving across a frame in opposite directions (but at different heights so that they don't collide.)

  How to write a program to check the collision

How to write a program to check the collision Write down a java program to check if they will collide or not. If they are going to collide print a message that 'The crafts will collide at (x,y)' where co-ordinates (x,y) are on Map as points of co..

  Difference between re-engineering and process redesign

What is the procedure of creating design specifications and what are differences between design testing and functional testing.

  Write a program that prompts the users to pick

A theater seating chart is implemented as a two-dimensional array of ticket prices like presented below. Write a program that prompts the users to pick either a seat or a price.

  You are to write a 6 - 8 page paper in the apa format

you are to write a 6 - 8 page paper in the apa format about a topic related to this course turn in the final copy of

  Write a payroll calculation program

A local small business has hired you to write a payroll calculation program. The program only needs to calculate gross pay for an employee and display.

  Write a program in java using swing to make a car moving

Write a Program in Java using Swing to make a car moving, and modify the animation program to make the moving shape reappear on the left-hand side.

  Program to persons ability to vote

Write down a program which asks for the user's age. On the basis of their response print "You may vote" (18 years old or older) or "You can't vote"

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd