CSE 326: Data Structures Lecture #11 AVL and Splay Trees

2/1/00


Click here to start


Table of Contents

CSE 326: Data Structures Lecture #11 AVL and Splay Trees

Today’s Outline

AVL Tree Dictionary Data Structure

Deletion (Hard Case #1)

Single Rotation on Deletion

Deletion (Hard Case #2-4)

Double Rotation on Deletion

Deletion with Propagation: Choose Your Own Adventure!

Propagated Double Rotation

Propagated Single Rotation

You Didn’t Rotate

AVL Deletion Algorithm

AVL buildTree

BuildTree Example

BuildTree Analysis (Approximate)

BuildTree Analysis (Exact)

Thinking About AVL

Splay Trees

Idea

Zig-Zig*

Zig-Zag*

Zig

Splaying Example

Still Splaying 6

Almost There, Stay on Target*

Splay Again

Example Splayed Out

To Do

Coming Up

Author: Steve Wolfman

Email: owner-cse326@cs.washington.edu

Home Page: http://www.cs.washington.edu/326/

Download presentation source