{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Lecture10 - IE 495 Lecture 10 Reading for This Lecture...

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

View Full Document Right Arrow Icon
IE 495 Lecture 10 September 28, 2000
Image of page 1

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

View Full Document Right Arrow Icon
Reading for This Lecture Primary Horowitz and Sahni, Chapter 2, Section 3
Image of page 2
More Data Structures
Image of page 3

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

View Full Document Right Arrow Icon
Trees A (directed) tree is a directed acylic graph satisfying the following: There is exactly one vertex called the root with in-degree 0. Every other vertex has in-degree 1. There is a path from the root node to every other node. Trees also have a natural recursive definition. Tree terminology If ( u , v ) E , then u is called the father / mother / parent of v and v is called the son / daughter of u . If there is a path from u to v , then v is a descendant of u and u is an ancestor of v .
Image of page 4
More Tree Terminology A tree in which each node has out-degree 0, 1, or 2 is called a binary tree . A tree in which the sons are ordered is called an ordered tree . In an ordered binary tree, the two sons are usually called the left son and the right son . The depth or level of a vertex v is the length of the (unique) path from the root to v .
Image of page 5

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

View Full Document Right Arrow Icon
Image of page 6
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