Commit Graph

24 Commits

Author SHA1 Message Date
mal0420
13ed587ceb Knotted should work now. I really was over-complicating it. I have commented the code and removed unused includes from the file. 2022-04-28 21:09:37 -05:00
mal0420
a05e4e19c0 Work done on knot-detection. Still figuring out how to best organize the data to look for loops. 2022-04-27 17:33:05 -05:00
a7c0a3babe Update file headers and includes 2022-04-23 20:16:15 -05:00
1d7b6db0a3 Code cleanup and stylization 2022-04-23 17:56:41 -05:00
e06a3dcd82 Configure clang-format 2022-04-23 17:55:53 -05:00
8044ba68e3 Implement graph reduction algorithm 2022-04-23 04:48:47 -05:00
ddaa60a5ec 750K? In MY compiled executable?
It's more likely than you think!
2022-04-23 04:48:32 -05:00
6603f96d69 Refactor for robustness and clarity 2022-04-23 04:47:55 -05:00
8c04650caf Main: Print whether or not graph is reducible 2022-04-23 00:02:06 -05:00
bddc486aeb Clarify "breaker" -> regex "pattern" 2022-04-22 23:39:18 -05:00
710807dde7 Fix includes, add attribution headers, remove unused constructor 2022-04-22 21:41:19 -05:00
952c318619 read_input:
- Clarify what each regex does by assigning rule numbers
- Properly handle commented-out lines in input files
- Properly scope several vars which were in too broad a scope
- Rewrite string-to-vector<int> to use regex to parse malformed input
- Remove dependency on sstream.
2022-04-22 21:12:22 -05:00
43c5dd10ed main: Print the graph after reading 2022-04-22 21:08:54 -05:00
654fb751e6 graph::print
Create function to print a graph
2022-04-22 21:08:33 -05:00
51fbacb024 Create test1.txt
This is a horribly malformed but still *technically* readable file.
2022-04-22 21:08:02 -05:00
80e9c4bcd4 Makefile: stop linking pthread stuff 2022-04-22 21:06:30 -05:00
8234aca2e0 Finish impl'ing reading a file 2022-04-22 18:48:36 -05:00
aeeb33e699 Switch to using std::vector rather than directly managed memory 2022-04-22 14:21:45 -05:00
b4a3beda69 Move reducible into its own file 2022-04-22 14:08:28 -05:00
476aec5734 C++-ify it some more, begin readfile 2022-04-17 22:03:17 -05:00
f770d105b8 Upgrade to C++ 2022-04-17 18:29:32 -05:00
300c72a49e This is probably owned by the university 2022-04-16 19:08:27 -05:00
8af524f276 Lay the groundwork 2022-04-16 19:03:38 -05:00
3406d23104 Initial commit 2022-04-16 21:59:00 +00:00