Project

General

Profile

Actions

Task #1187

closed

NameTree

Added by Junxiao Shi almost 11 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Tables
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
24.00 h

Description

Develop the NameTree.

NameTree provides a unified data structure for FIB, PIT, and Measurements.

Each NameTree Entry contains:

  • a Name
  • zero or one fib::Entry
  • zero or more pit::Entry
  • zero or one measurements::Entry

The NameTree should provide methods to:

  • exact match: given a Name, return the NameTree entry with that Name, or determine that such entry does not exist
  • longest prefix match: given a query Name, return the NameTree entry whose Name is a prefix of the query Name; the entry returned should have the longest Name among candidate entries
  • insert: given a Name, return the NameTree entry with that Name; insert a new entry if such entry does not exist
  • delete: given a Name or a NameTree entry, delete that entry if it exists
  • full enumerate: iterate over all NameTree entries
  • partial enumerate: given a query Name, iterate over NameTree entries under this Name prefix
  • get parent: given a NameTree entry, return a NameTree entry whose Name equals this entry's Name minus the last component; insert a new entry if such entry does not exist
  • get ancestor: given a NameTree entry, return an existing NameTree entry whose Name is a prefix of this entry's Name minus the last component; the entry returned should have the longest Name among candidate entries
  • count: return the total number of NameTree entries

The design should have reasonable performance.

The physical data structure of NameTree is not specified. It's up to the assignee.

NameTree


Related issues 5 (0 open5 closed)

Blocks NFD - Task #1190: FIB on NameTreeClosedTian Song

Actions
Blocks NFD - Task #1194: PIT on NameTreeClosedHaowei Yuan

Actions
Blocks NFD - Task #1200: Measurements on NameTreeClosedTian Song

Actions
Precedes NFD - Task #1202: shortcuts between FIB, PIT, Measurements, StrategyChoiceClosedTian Song

Actions
Precedes NFD - Task #1305: NameTree optimizationClosedHaowei Yuan

Actions
Actions

Also available in: Atom PDF