Skip to content
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

Benchmarking example #78

Open
rokicki opened this issue Aug 29, 2024 · 1 comment
Open

Benchmarking example #78

rokicki opened this issue Aug 29, 2024 · 1 comment

Comments

@rokicki
Copy link

rokicki commented Aug 29, 2024

Here's a benchmarking example if you want it. It takes about five hours with Monoid Automata Factory, and about five minutes (if you give the -t 2000000 option) with kbmag. I'd be curious how this Julia implementation performs.

If you don't give a -t option to kbmag, it will run for days; I've posted an issue and suggested fix in the kbmag repo.

#aaa,ab'b'b'a'b'a'b
_RWS := rec
(
  isRWS := true,
  ordering := "shortlex",
  generatorOrder := [a,A,b,B],
  inverses := [A,a,B,b],
  equations := 
  [
   [a*a*a,IdWord],
   [a*B*B*B*A*B*A*b,IdWord]
  ]
);
@kalmarek
Copy link
Owner

kalmarek commented Sep 3, 2024

I'd be curious how this Julia implementation performs.

why don't you tell me? ;)

But honestly, this implementation is not really tuned for performance. If it does perform well here, that would be by sheer coincidence.

  1. How large is the confluent system?
  2. Does it experience one (or more) collapses i.e. when a large portion of the rules is rendered unnecessary?
  3. Does it run into the problem of cubic (w.r.t. number of rules) complexity? Then it's likely the case we're reducing too often.
  4. Does it finish abruptly (due to backtrack confluence check)?

There are many parameters that will influence the performance of Knuth-Bendix completion ;)

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

No branches or pull requests

2 participants