Skip to content

Added a simplifying function using double ended deque that can run in linear time#3

Open
z1w wants to merge 6 commits into
shehper:mainfrom
z1w:main
Open

Added a simplifying function using double ended deque that can run in linear time#3
z1w wants to merge 6 commits into
shehper:mainfrom
z1w:main

Conversation

@z1w
Copy link
Copy Markdown

@z1w z1w commented Feb 26, 2025

This pull request introduces a new simplify_relator_with_deque function utilizing a deque-based approach for relator simplification. The implementation achieves inverse pair elimination in O(n) time complexity and provides robust handling of cyclical eliminations. This function also returns the count of non-zero elements in the simplified relator, serving as an invariant for the simplification process.

A comprehensive unit test test_simplify_deque is also provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants