Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Cassandrich
@dalias@hachyderm.io  ·  activity timestamp 3 months ago

Just designed and tested an algorithm to build a reverse-iterator on top of an iterator that can only run in forwards direction (part of the #musl collation project) and it seems to be good!

63 underlying forward-iterate steps to perform 21 reverse-iterate steps in simple test case.

  • Copy link
  • Flag this post
  • Block
d@nny disc@ mc²
@hipsterelectron@circumstances.run replied  ·  activity timestamp 3 months ago
@dalias will definitely be citing this in my emacsconf talk this year
  • Copy link
  • Flag this comment
  • Block
Cassandrich
@dalias@hachyderm.io replied  ·  activity timestamp 3 months ago

5932 forward iterate steps to do 1000 reverse iterate steps.

  • Copy link
  • Flag this comment
  • Block
Cassandrich
@dalias@hachyderm.io replied  ·  activity timestamp 3 months ago

Expected to be O(n log n), looks like empirically it's about 2/3 n log n.

  • Copy link
  • Flag this comment
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0-rc.3.13 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login