the imbalanced node is if the height of subtree is - then the height of will be - and the tree is zig-zig you can rebalance by rotating about node if the height of subtree is - then the height of is - and the tree is zig-zag you rebalance by doing double rotation about the root of if both and have heights of - then you treat it as either zig-zig or zig-zag both work for the purposes of your labtreat this case like zig-zig notes the mirror image works the same way let' look at some examples firstsuppose we delete calista from the following tree binky calista baby daisy ahmed you're left with binky baby daisy ahmed you check calista' old parent binky and although binky' height hasn' changedthe node is imbalanced it' clearly zig-zig treeso you rotate about baby daisy to yield the following tree baby daisy ahmed binky since baby daisy is the rootwe're done let' try more complex example -deleting eunice from the following treedaisy binky baby daisy ahmed calista boo eunice dontonio luther fred lovely professional university