530 likes | 690 Views
HUMAN COMPUTER INTERACTION Lab. Of Distributed Multimedia Information Systems and Applications | TUC/MUSIC Department of Electronic and Computer Engineering Technical University of Crete. Rontidis Pavlos prontidis@yahoo.gr Souris Anastasios tassos_souris@yahoo.gr. mDS. s.
E N D
HUMAN COMPUTER INTERACTION Lab. Of Distributed Multimedia Information Systems and Applications | TUC/MUSIC Department of Electronic and Computer Engineering Technical University of Crete RontidisPavlos prontidis@yahoo.gr Souris Anastasios tassos_souris@yahoo.gr
s http://en.wikipedia.org/wiki/Binary_search_tree • Description: Node-based binary tree with the properties: • A left sub-tree of a node contains only nodes with keys less than … http://en.wikipedia.org/wiki/AVL_tree Description: AVL tree is a self-balancing binary search tree, and it was the first such data structure to be invented. http://en.wikipedia.org/wiki/Red_Black_tree Description:A red-black tree is a type of self-balancing binary search tree, a data structure used in computing science, typically used to implement associative arrays.
menu mDS
The purpose of this test is to test basic knowledge on BSTs. Time Limit: 3 min Completed in: 2min Date finished: 2/22/2011 The purpose of this test is to test two operation on BSTs, Insertion and deletion. Time Limit: 6 min Not taken The purpose of this test is to test BST traversals. Insertion and deletion. Time Limit: 10 min Not taken
Tap start to start the timer. Tap start to complete or exit the Quiz. Tap start to start the timer. Tap start to complete or exit the Quiz. Start Finish
00:01 Multiple choice Description… Answer 1…. Answer 2… Answer 3… Start Finish
The purpose of this test is to test basic knowledge on BSTs. Time Limit: 3 min Completed in: 2min Date finished: 2/22/2011 The purpose of this test is to test two operation on BSTs, Insertion and deletion. Time Limit: 6 min Failed: 10min Not Completed The purpose of this test is to test BST traversals. Insertion and deletion. Time Limit: 10 min Not taken
mDS Prototype:Animations List 10 iPhone demo 3 15 change options 8 2 17 Search for key = 6 6 16 Search for key = 9 iPad demo Node creation & insertion In-order Traversal
Change options 10 3 15 8 2 17 6 16 options help return animation practice
Option screen mDS
Option screen mDS
mDS Prototype:Animations List 10 iPhone demo 3 15 change options 8 2 17 Search for key = 6 6 16 Search for key = 9 iPad demo Node creation & insertion In-order Traversal
Search 6 10 3 15 8 2 17 6 16 options help return animation practice
You tapped inside an empty node. Enter node’s key:
You tapped inside an empty node. 6 Enter node’s key:
10 < 3 15 8 2 17 6 16 6 < 10 is True cancel
10 3 15 > 8 2 17 6 16 6 > 3 is True cancel
10 3 15 8 2 17 > 6 16 6 < 8 is True cancel
10 3 15 8 2 17 6 16 6 = 6 is True cancel
10 3 15 8 2 17 6 16 Node found ! cancel
mDS Prototype:Animations List 10 iPhone demo 3 15 change options 8 2 17 Search for key = 6 6 16 Search for key = 9 iPad demo Node creation & insertion In-order Traversal
Search 9 10 3 15 8 2 17 6 16 options help return animation practice
You tapped inside an empty node. Enter node’s key:
You tapped inside an empty node. 9 Enter node’s key:
10 < 3 15 8 2 17 6 16 9 < 10 is True cancel
10 3 15 > 8 2 17 6 16 9 > 3 is True cancel
10 3 15 8 2 17 6 16 9 > 8 is True cancel
10 3 15 8 2 17 6 16 NULL Leaf reached. Node not found. cancel
mDS Prototype:Animations List 10 iPhone demo 3 15 change options 8 2 17 Search for key = 6 6 16 Search for key = 9 iPad demo Node creation & insertion In-order Traversal
Insert 9 10 3 15 8 2 17 6 16
10 3 15 8 2 17 6 16 Node created !
You tapped inside an empty node. Enter node’s key:
You tapped inside an empty node. 9 Enter node’s key:
10 < 3 15 8 2 17 6 16 Next step: current current.left current.key root.key 9 < current.key cancel
10 3 15 > 8 2 17 6 16 Next step: current current.right current.key 3 9 > current.key cancel
10 3 15 8 2 17 6 16 NULL found position for key = 9 Pointer to NULL: Allocate space for new node. current.key 8 9 > current.key cancel
10 3 15 2 8 17 16 6 9 Node inserted. Algorithm finished. Result: Insertion completed. cancel
mDS Prototype:Animations List 10 iPhone demo 3 15 change options 8 2 17 Search for key = 6 6 16 Search for key = 9 iPad demo Node creation & insertion In-order Traversal
In-order traversal 10 3 15 8 2 17 6 16
10 3 15 8 2 17 6 16 Gesture initiated an in-order traversal. cancel
10 3 15 8 2 17 6 16 Recursion to left sub-tree. Printed: 2 cancel
10 3 15 8 2 17 6 16 Printed: 2, 3 cancel
10 3 15 8 2 17 6 16 Printed: 2, 3, 6 cancel
10 3 15 8 2 17 6 16 Printed: 2, 3, 6, 8 cancel
10 3 15 8 2 17 6 16 Visited root. Printed: 2, 3, 6, 8, 10 cancel
10 3 15 8 2 17 6 16 Recursion to right sub-tree. Printed: 2, 3, 6, 8, 10, 15 cancel
10 3 15 8 2 17 6 16 Printed: 2, 3, 6, 8, 10, 15, 16 cancel