-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ordinal trees #22
base: next
Are you sure you want to change the base?
Ordinal trees #22
Conversation
As I understand, ordinal trees are called ordinal because nodes are ordered by some logic. In your implementation, I see that every node has some value but I do not see the condition or some algorithm that sorts children of a node. |
610e12f
to
73eceb3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not see any changes that are addressing my comment from last week ⬆️
Hi! I apologize for my lack of communication. As you noticed, I adapted what I had already done to the changes in the repository. I'm working on the implementation, and there should be relevant changes added by Monday. I'm working on a way of organizing the values by pattern and repetition.
This would always add the fourth value to the left, causing the tree to skew.
This would create the pattern: "((() )((( ((() )(((" When left empty, the values will simply be added in order. If you have any further suggestions, I'll gladly work them in or adjust my approach. |
Hello! I have updated my approach. Patterns are now specified as arrays of characters, for example: This pattern defines the order of children for each node, giving precedence to the specified characters. Words beginning with the letter "d" will always appear on the leftmost side of the tree. If a word does not match the specified pattern, it will be ordered alphabetically, with preference given to uppercase letters. I have also made it possible to define custom patterns for specific words. These custom patterns are combined with the global pattern. For example: If the global pattern is If you have any additional requests, please feel free to let me know! |
Added support for ordinal trees