You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Aadhavan Srinivasan
137ea3c746
I made findAllMatchesHelper a non-recursive function. It now only returns the first match it finds in the string (so I should probably rename it). These indices are collected by findAllMatches and pruned (to remove overlaps). The overlap function has also been rewritten, to make it (I believe) less than O(n^2). I also used the uniq_arr type to make checking for uniqueness O(1) instaed of O(n) (as it was with unique_append()). This has resulted in massive performance gains. There's been a lot of changes here, and I probably haven't documented all of them. |
2 months ago | |
---|---|---|
.gitignore | 2 months ago | |
Makefile | 2 months ago | |
go.mod | 2 months ago | |
go.sum | 2 months ago | |
main.go | 2 months ago | |
matching.go | 2 months ago | |
misc.go | 2 months ago | |
nfa.go | 2 months ago | |
postfixNode.go | 2 months ago | |
re_test.go | 2 months ago | |
sliceQueue.go | 2 months ago | |
stateContents.go | 2 months ago | |
todo.txt | 2 months ago | |
unique_array.go | 2 months ago |