Download presentation
Presentation is loading. Please wait.
Published byHugo Michael Bridges Modified over 9 years ago
1
Multiprefix Trie: A New Data Structure for Designing Dynamic Router-Tables Author: Sun-Yuan Hsieh, Senior Member, IEEE, Yi-Ling Huang, and Ying-Chi Yang Publisher: IEEE TRANSACTIONS ON COMPUTERS 2011 Presenter: Yu Hao, Tseng Date: 2013/05/01 1
2
Outline Introduction Prefix Trees Multiprefix Trie Algorithm Index Multiprefix Trie Experimental Results Conclusion 2
3
Introduction One key feature of our data structure is that each node can store more than one prefix, which reduces the number of memory accesses. 3
4
Prefix Trees 4
5
Multiprefix Trie A k-stride Multiprefix Trie (k-MPT), where k is the stride which is a positive integer, contains two types of nodes, a primary node (p-node) and a secondary node (s-node). 5
6
Multiprefix Trie (Cont.) 6
7
7
8
8
9
9
10
10
11
Multiprefix Trie (Cont.) 11
12
Multiprefix Trie (Cont.) An internal p-node is a full p-node. (ex : a and e.) An external p-node is a nonfull p-node. (ex : b, c, d and f.) 12
13
Multiprefix Trie (Cont.) 13
14
Multiprefix Trie (Cont.) 14
15
Algorithm Creating an Empty k-MPT 15 Algorithm MPT_CREATE(T) 1: v := ALLOCATE_P-NODE() 2: root(T) := v
16
Algorithm (Cont.) 16
17
Algorithm (Cont.) Insertion Operation Example 1. To insert the prefix 010* into a 2-MPT with m = 5. 17
18
Algorithm (Cont.) Insertion Operation Example 2. To insert the prefix 0110100* into a 2-MPT with m = 5. 18
19
Algorithm (Cont.) Insertion Operation 19
20
Algorithm (Cont.) Lookup Operation Ex 1. DA = 11010010. Ex 2. DA = 00100110. 20
21
Algorithm (Cont.) Delete Operation Example 1. To delete the prefix 01* from the 2-MPT with m = 5. 21
22
Algorithm (Cont.) Delete Operation Example 2. To delete the prefix 110100* from the 2-MPT with m = 5. 22
23
Algorithm (Cont.) Delete Operation Example 2. To delete the prefix 0110100* from the 2-MPT with m = 5. 23
24
Algorithm (Cont.) Delete Operation 24
25
Index Multiprefix Trie 25
26
Index Multiprefix Trie (Cont.) 26
27
Experimental Results 27
28
Experimental Results (Cont.) 28
29
Experimental Results (Cont.) 29
30
Experimental Results (Cont.) 30
31
Conclusion We have proposed two new data structures, MPT and IMPT, for dynamic router-table design. Since the structures do not contain dummy nodes, they require less storage and they are not as high as other trees. In addition, because of the lower height, they require fewer memory accesses for router-table operations. 31
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.