Skip to content

Commit

Permalink
Initial import of patriciatrie-c project
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Northcott committed May 9, 2012
0 parents commit c71c3d3
Show file tree
Hide file tree
Showing 10 changed files with 1,616,399 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.o
bin/
*.tmproj
*.DS_Store
13 changes: 13 additions & 0 deletions Makefile
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
18 changes: 18 additions & 0 deletions README.md
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
Loading

0 comments on commit c71c3d3

Please sign in to comment.