Python Forum
find repeating cycle in iterable results
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
find repeating cycle in iterable results
#1
i have an iterable object (not just an iterator). it has a repeating cycle in it, or not. it comes to an end if not. it repeats forever if so. it would be impossible to determine if the cycle is found if other cycles can repeat a finite number of times since it would be possible for that number to be arbitrarily large. so a rule could be established for a maximum number of repeats that would be the maximum that means "infinite".

i would like to find a module or class or code or something that can find what is specified as the maximum number of repeating cycles. would i need to specify the maximum cycle length, too?

this iterable can yield any kind of object which may be unhashable.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  repeating a range Skaperen 5 1,335 Aug-10-2022, 10:17 PM
Last Post: Skaperen
  Python Going to a 12 Month Release Cycle ichabod801 0 1,470 Nov-01-2019, 08:32 PM
Last Post: ichabod801

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020