-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial import of patriciatrie-c project
- Loading branch information
Mark Northcott
committed
May 9, 2012
0 parents
commit c71c3d3
Showing
10 changed files
with
1,616,399 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
*.o | ||
bin/ | ||
*.tmproj | ||
*.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
# Compiler | ||
CC=gcc | ||
CFLAGS=-g -Wall -march=x86-64 | ||
|
||
all : patricia_test | ||
|
||
patricia_test : | ||
$(CC) $(CFLAGS) $(LDFLAGS) -o bin/patricia_test src/patricia_test.c src/patricia.c | ||
|
||
clean : | ||
rm -f *.o bin/patricia_test | ||
rm -rf bin/patricia_test.dSYM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Overview | ||
======== | ||
|
||
An implementation of a Patricia Trie (also known as a radix tree/trie or compact prefix tree) which is a data structure used for storing large numbers of strings in a compact manner. It allows for the quick search/lookup of a string, and it can be used to check whether or not a prefix exists in the tree. | ||
|
||
Compiling | ||
========= | ||
|
||
Run from the command line: | ||
|
||
> make | ||
|
||
Running the test application | ||
============================ | ||
|
||
Run from the command line: | ||
|
||
> ./bin/patricia_trie |
Oops, something went wrong.