hw_07 - CS 473 Fundamental Algorithms Spring 2012 Homework...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 473: Fundamental Algorithms, Spring 2012 Homework 7 (due Tuesday, 23:55:00, March 27, 2012) Collaboration Policy & submission guidelines: See homework 1. Each student individually have to also do quiz 7 online. Version: 1.1 1. ( 30 pts. ) 3 / 4 -tree. Consider a uniform rooted tree of height h (every leaf is at distance h from the root). The root, as well as any internal node, has exactly 4 children. Therefore this three has n = 4 h leaves. Each leaf has a boolean value (0 or 1) associated with it. Based on the values at the leaves we recursively define the values at each node of the tree as follows. The value at an internal node v is 1 if and only at least three of its children evaluate to 1. The evaluation problem consists of determining the value of the root; at each step, an algorithm can choose one leaf whose value it wishes to read. (A) ( 10 pts. ) Consider a tree of height h = 1. Provide a randomized algorithm that in expectation (independent of the values stored in the 4 leafs!) evaluates strictly less than 4 leaves to find the value of the root.
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern