Questions tagged [cycle]

A cycle is a process or series of items, which repeats several times.

Cycle is processes or events, which repeat several times. Number of repetitions can be known before starting the cycle or cycle can be repeated until some condition is true.

1551 questions
3
votes
1 answer

Counting 4 and 6-cycles in bipartite R igraph

I want to count the number of four-cycles and the number of six-cycles in a bipartite igraph in R. Adapting the code in r igraph find all cycles, I've come up with this solution: > set.seed(1) > library(igraph) > G <-…
Zachary
  • 345
  • 1
  • 8
3
votes
5 answers

How to slice a circular list

Suppose I have list as follow: lst = [0,10,20,30,40,50,60,70] I want elements from lst from index = 5 to index = 2 in cyclic order. lst[5:2] yields [] I want lst[5:2] = [50,60,70,0,10]. Is there any simple library function to do this?
new_here
  • 41
  • 4
3
votes
3 answers

Python (json) How to add every key of same name to the list

I need to add every value from key name and from key age to the list But after start of this code there is: for i in len(jsondata['name']): builtins.KeyError: 'name' But you see that I have "name": "husky", and "name": "shiba inu", in second one.…
Miroslav
  • 33
  • 2
3
votes
3 answers

Javascript: Popup with movie from images in main window

I'm a mostly-newbie Javascript'er and I'm trying it on a webpage which, upon pressing a button, pops up a window which shows a cyclic "movie" with the images from the main window. From what I've tried Googling around I can sense I'm pretty close,…
jbatista
  • 2,747
  • 8
  • 30
  • 48
3
votes
1 answer

Transparent PNG (24) issue in IE8 and below using jQuery Cycle

I'm using jQuery cycle to fade my slideshow in / out. My slides have a background, and their are semi-transparent PNG's (using tag) within my slides. While the slide is fading in, the semi-transparent areas have black splotches. These splotches…
Mark26855
  • 87
  • 1
  • 1
  • 8
3
votes
0 answers

Cycle MLM Matrix Recursion PHP

I am working at Matrix MLM Tree or Cycle. I made recursion functions and It's working fine. It's not making fully pyramid like so: It's just increasing in Left Hand not at the Right hand: Result Here Left ID Right 1 2 3 4…
3
votes
0 answers

Heroku Scheduler Issue: Daily Job skipped every other day - Node JS *RESOLVED*

I currently have a Heroku job set with Scheduler to run my Node application every day at 03:00 UTC. However, I just noticed that it is in fact running every other day with a 'cycling' session occurring regularly in between. The cycling always occurs…
RobSim
  • 31
  • 2
3
votes
1 answer

What is this algorithm called? (SSSP)

Observation: For each node, we can reuse it's min path to destination, so we don't have to recalculate it(dp). Also, the moment we discover a cycle, we check if it's negative. If it's not, it will not affect our final answer, and we can say that it…
timg
  • 381
  • 2
  • 13
3
votes
5 answers

Generate list of Ints in Haskell by adding Ints from a pattern list

I'm playing around with Haskell, mostly trying to learn some new techniques to solve problems. Without any real application in mind I came to think about an interesting thing I can't find a satisfying solution to. Maybe someone has any better…
3
votes
3 answers

Weird Oracle behaviour - cross join in recursive CTE works with comma but not with cross join clause

Suppose following simple recursive query r to list several numbers. When recursive part of query is cross joined with unnecessary 1-row table using old way with comma separation, everything works fine (dbfiddle): with r (x) as ( select 1 as x from…
Tomáš Záluský
  • 10,735
  • 2
  • 36
  • 64
3
votes
1 answer

RDS PostgreSQL DB slow & timeouts during daily 2-hour CPU peaks

For over 2 weeks now I've observed that my RDS instance (PostgreSQL 10.6 on a db.t3.small) has daily 2-hour CPU peaks during business hours, together with increased read and write latency, that lead to poor responsiveness or timeouts in my…
user2870968
  • 493
  • 4
  • 8
3
votes
6 answers

How to determine cycles in a list?

Consider a list of integer indices, indices. All elements of indices are within the bounds of the list indices. All the values in the list indices are unique. Example [2, 0, 1, 4, 3, 5]. Given an index, (e.g 0), move on to indices[0] (i.e 2 in the…
EddieEC
  • 357
  • 4
  • 17
3
votes
4 answers

Jquery Cycle —multiple nested slideshows and cycle terminating

I am trying to build a slideshow using the jQuery Cycle plugin that contains another level of nested slideshows within some of the top-level slides. The main "container" slides slide horizontally, and then—for "container" slides that contain more…
Kerri
  • 1,211
  • 2
  • 15
  • 22
3
votes
1 answer

jquery cycle link from external page to specific slide?

Been perusing all the other questions, and I can't figure this out. I have a home page that features certain slides from another page I have using the jquery cycle plugin. What I need to do is have the link on the home page link directly to a slide…
3
votes
1 answer

What's the purpose of clocked registers in pipelined processor

Hi I'm reading an textbook that descrbes the piplelined desgin of CPU. I don't understand why we still need clocked registers? for example, as the picture belows shows: if we can remove all three registers, we can save 60ps, because we just need the…
user9623401