Skip to content

A C++ data structre (essentially a standard tree, but with features needed for state systems)

Notifications You must be signed in to change notification settings

bryan-pakulski/StateTree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

StateTree

A C++ data structure (essentially a standard tree, but with features needed for state systems)

Features:

  • Add / Delete Nodes
  • Trim Duplicate subtrees
  • Breadth First Search
  • Iterative Deepening Depth First Search
  • Hamming distance between data points

Initialisation and usage

  • Include header file in project
  • Initialise State tree with type
  • Add nodes

image

Which should result in output as follows:

image

TODO:

  • Different search options BFS, DFS, IDDFS for tree (BFS done, IDDFS done, only DFS left)

NOTE:

when using struct data types make sure to include an operator overload for " == " i.e. A state tree of type struct st (see below for structure type)

image

Will need a overload operator like this in order for the library to function:

image

This also applies to the hamming distance function, if you are using structs you must overload the ^ operator and return the data value of struct1 ^ struct2 in order for the function to work correctly, standard data types will work fine;

image

About

A C++ data structre (essentially a standard tree, but with features needed for state systems)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages