GoConqr has a new look! Let us know what you think.

Flashcards

Binary Trees

Virginie Gagné Computer Science English 10 cards

Binary Trees

Cards in this deck (10)

  1. 1define the order of a rooted treemaximum number of children of any node
  2. 2max number of nodes for binary tree og height hmax number of nodes for binary tree og height h
  3. 3min number of nodes in binary treemin number of nodes in binary tree
  4. 4binary tree java implementationbinary tree java implementation
  5. 5binary tree traversalbinary tree traversal
  6. 6—
  7. 7—
  8. 8recursive evaluation of expression treesrecursive evaluation of expression trees
  9. 9define in-fix pre-fix post-fix expressionsin-fix: normal
    pre-fix: operator comes before the two operands
    -+x * 4 y ^ 6 ^ z 8
    which is interpreted as
    (- (+ x (* 4 y))(^ 6 (^ z 8)))
    preorder traversal of the tree
    post-fix: operators comes after the two operands
    x 4 y * + 6 z 8 ^ ^ -
    is interpreted as
    ((x (4 y *) + ) (6 (z 8 ^) ^ ) - )
    post-order traversal of the tree
  10. 10stack-based algorithm for evaluating a postfix expressionstack-based algorithm for evaluating a postfix expression

Information

Description
Computer Science Flashcards on Binary Trees, created by Virginie Gagné on 15/04/2022.
Created by
Virginie Gagné
Views
0
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?