Computer Science Homework Solutions
Problem
#180412

Divide and Conquer Binary Tree

Consider an n-node complete binary tree T, where n=2^d - 1 for some d. Each node v of T is labeled with a real number x_v. You may assume that the real numbers labeling the nodes are all distinct. A node v of T is a local minimum if the label x_v is less than the label x_w for all nodes w that are joined to v by an edge.

You are given such a complete binary tree T, but the labeling is only specified in the following implicit way: for each node v, you can determine the value x_v by probing the node v. Show how to find a local minimum of T using only O(log n) probes to the nodes of T.

(This is a problem from the book Algorithm Design by Kleinberg and Tardos, page 248, problem 6)

Solution
What is this?
By OTA - Overall OTA Rating
Yupei Xiong, PhD - 4.8/5
Purchase Cost Now
$2.19 CAD (was ~$39.90)
Included in Download
  • Plain text response
$2.19 Instant Download
Add to Cart
Why you can trust BrainMass.com
  • Your Information is Secure
  • Best Online Academic Help Service
  • Students find real academic Success
Related Solutions
  • Ambiguity in a proposed algorithm - Explain the distinction between an ambiguity in a proposed algorithm and an ambiguity in the representation of an algorithm.
  • Sorting Algorithm - Please assist so that I can complete the following: You will create a program that runs a sorting algorithm on a set of randomized values. Your program should run the algorithm several times, to ge ...
  • Automata and Computability - Show that the problem of testing whether two branching programs compute the same function is solvable in polynomial time if and only if P = NP
  • Automata and Computability - Describe the error in the following fallacious “proof” that P  NP. Consider an algorithm for SAT: “On input , try all possible assignments to the variables. Accept if any satisfy  ...
  • Decryption algorithm - Using RSA, choose p = 5 and q = 7, encode the phrase “hello”. Apply the decryption algorithm to the encrypted version to recover the original plain text message.
Browse