Pagwin
ae0b45df73
Fixed issues and setup a makefile for submission
2024-11-25 23:49:54 -05:00
Pagwin
30babdb9dc
some fixes
2024-11-25 20:06:43 -05:00
Pagwin
ce0f5f7ef0
slowly working through given tests to get Map fully working in all functionality
2024-11-25 16:25:47 -05:00
Pagwin
315a200c9b
committing more tests
2024-11-24 22:25:54 -05:00
Pagwin
9271042e78
<, == and != done
2024-11-24 22:18:00 -05:00
Pagwin
09d2323cbf
did most of the misc stuff just need < and ==
2024-11-24 20:42:13 -05:00
Pagwin
27409cc0b0
fixed memory issues, and bugs in insertion and deletion, added checks on the way
2024-11-24 15:20:10 -05:00
Pagwin
9cdecb790b
some progress was made
2024-11-24 02:08:39 -05:00
Pagwin
c3eaa8783b
I keep finding issues but none of them are "the" issue
2024-11-24 01:23:19 -05:00
Pagwin
94f53b7156
critical clue
2024-11-24 00:53:21 -05:00
Pagwin
37aacdbae7
organized suspect list
2024-11-23 23:29:41 -05:00
Pagwin
6b11c7c95d
realized hard_erase is not exempt
2024-11-23 23:24:51 -05:00
Pagwin
3f1182515d
wrote down suspects to keep in mind for tomorrow
2024-11-23 23:23:35 -05:00
Pagwin
c48eff8fc7
suffering from memory corruption issues, not sure where the issue is
2024-11-23 23:17:05 -05:00
Pagwin
62cdce3f2e
adding to map seems to work now
2024-11-23 20:52:08 -05:00
Pagwin
79fd8550db
aforementioned delete
2024-11-23 19:26:43 -05:00
Pagwin
a3bba5549b
test files have been uncommitted for awhile but I'm committing now so I can delete some comfortably
2024-11-23 19:26:10 -05:00
Pagwin
9a066ce16f
most of red-black insert done debugging it atm
2024-11-23 19:25:26 -05:00
Pagwin
d8278a195a
starting over to avoid the mess I made
...
earliest commit I'm 100% confident Map.hpp doesn't have some
compilation error waiting to pop up from initializing the template
2024-11-23 17:02:55 -05:00
Pagwin
3206bfbd39
removal from the tree is screwed idk if I'm getting this done tonight
2024-11-22 22:07:26 -05:00
Pagwin
f73c68a980
committing before I redo red-black deletion of black leaf
2024-11-22 21:54:36 -05:00
Pagwin
a0ce38e2ee
bug fixing and realizing that I need to fix my way of determining the next and prior node
2024-11-22 19:24:06 -05:00
Pagwin
88194b9a5b
fixed a bug due to using pointers instead of vector indices
2024-11-22 17:50:16 -05:00
Pagwin
f87ca7431d
fixed some bugs
2024-11-22 15:43:10 -05:00
Pagwin
b5b03e5fbe
compiles now I think and seems to work but haven't tested extensively
2024-11-22 14:57:43 -05:00
Pagwin
22bfd729e4
remove revalidation std::list makes it redundant, also realized I can't have a reference in something I default construct
2024-11-22 01:43:37 -05:00
Pagwin
1bfe6e806a
typo fix and trying list instead of vector
2024-11-22 01:37:39 -05:00
Pagwin
61a710f938
have self iterator for easier erasure and revalidate them all after erasure but realizing that that isn't good enough for performance so might need to shift to using unique_ptr to do proper pointers
2024-11-21 19:04:54 -05:00
Pagwin
f83d3f70b5
operator< again
2024-11-21 18:50:52 -05:00
Pagwin
3736ad2384
erase draft implemented
2024-11-21 18:49:40 -05:00
Pagwin
2f323d8561
replaced array based binary tree for pointer based binary tree and got a draft of insertion done and a good chunk of a draft for removal done
2024-11-21 16:28:49 -05:00
Pagwin
c47ee41caf
slowly realizing that the array based binary tree is impractical
2024-11-20 18:15:34 -05:00
Pagwin
894021ab61
Redid iterator bookkeeping
...
Everything works via a bookkeeping type which tracks a bunch of stuff
like the color and neighbors. This is needed to make the iterator go
brrrr instead of needing to relocate the relevant tree node every time
we want to increment the iterator.
2024-11-19 22:36:09 -05:00
Pagwin
be847faa8c
just about got an idea for iterator but just realized that I need to implement a red-black tree rather than a generic binary tree
2024-11-19 14:09:05 -05:00
Pagwin
8a73e0d950
change iterator structure to actually do an in order iterate
2024-11-19 13:01:22 -05:00
Pagwin
a12ee91033
size < and at implemented, iterator still scaring me
2024-11-18 18:23:13 -05:00
Pagwin
c81eaa40cc
a lot of code but not sure about state iterator needs for in order traversal
2024-11-18 17:51:11 -05:00
Pagwin
ee7aad38f0
find and iterator stuff done kinda
2024-11-18 17:24:59 -05:00
Pagwin
e3ba3ec09f
made iterators have actually correct underlying data?
2024-11-18 17:08:25 -05:00
Pagwin
c4b0c7f5c9
Some initial boilerplate and obvious implementations
...
commit 1/10
2024-11-15 18:34:14 -05:00
github-classroom[bot]
49fa268a8d
add deadline
2024-11-15 22:47:04 +00:00
github-classroom[bot]
75ef8d2610
Setting up GitHub Classroom Feedback
2024-11-15 22:47:01 +00:00
github-classroom[bot]
906c9a227e
GitHub Classroom Feedback
2024-11-15 22:47:01 +00:00