Sometimes you need to move from a tree node to its parent. To do this, a binary tree node would need a reference to its parent. You then would be able to traverse a path from a leaf to the root. Redesign the node used in a binary tree so that each one has a reference to its parent as well as to its left child and right child. What methods will need to be changed?
LECTURE – 1 MECHANICS Study of what happens to a body when forces are applied to it. Mechanics Rigid bodies Deformable bodies Fluids (Don’t change shape) (Do change shape) Compressible Incompressible Statics Dynamics Fundamental physical Quantities Length Mass Time Force Newton’s second Law relates these quantities through the formula F = ma F = Force applied to object m = mass of object a = acceleration of object 2 different unit systems Standard English