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
4
votes
2 answers

Scrollable, Carousel, Slider in jquery without any plugin - the simplest way

I looking-for tutorial about jQuery slider (like scrollable plugin) with cycle animation. Without any plugin, the simplest way, tutorial
kicaj
  • 2,881
  • 5
  • 42
  • 68
4
votes
1 answer

jQuery cycle plugin with AJAX functionality

I have a page where I'll have multiple picture sliders (like 50 sliders+ with 5-10 pictures each). Unfortunately because of this massive amount of sliders, the page loads really slow :- ( Until now I've been using the famous jQuery Cycle Plugin by…
Kristian
  • 1,343
  • 4
  • 29
  • 47
4
votes
1 answer

angular 2 animate in *ngFor only one element

I use animation in *ngFor. When i click and do animation, it animate all elements in cycle, but I want animate only one. How can I do that ?…
Стас Рябцев
  • 1,318
  • 4
  • 19
  • 36
4
votes
2 answers

Python - How to speed up smoothness in pygame?

I'm wondering how to speed up the smoothness of my code written in Python using pygam. I'm guessing I have to make this more efficient somehow? When this is run, some balls move around randomly in a set area, however, the new position of each ball…
ash ash
  • 71
  • 1
  • 7
4
votes
5 answers

weak_ptr and parent-child cyclic dependencies

I currently have something similar to the following: class Parent { //just a single child... for sake of simplicity //no other class holds a shared_ptr reference to child shared_ptr _child; System * getSystem() {...} } class…
jameszhao00
  • 7,213
  • 15
  • 62
  • 112
4
votes
3 answers

Circular reference in python

I am not sure how python deal with circular reference (reference cycle). I check some answers and found this: Python's standard reference counting mechanism cannot free cycles, so the structure in your example would leak. The supplemental garbage…
Guohua Cheng
  • 943
  • 7
  • 15
4
votes
4 answers

How to measure CPU cycles per instruction in a C program

I have a C program where I am starting to use some SIMD optimizations for the SPE (Cell processor), etc. I would like somehow to "time" how many cycles do they need. One idea is to switch on/off and measure whole execution time. But this is slow. I…
Open the way
  • 26,225
  • 51
  • 142
  • 196
4
votes
4 answers

How can I iterate through a two-dimensional array in a snail mode, with a single cycle?

Given a two dimensional array, I would like to iterate through it in a snail mode and print out the elements using one single cycle. For example if the given array is: 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 The…
Róbert Nagy
  • 6,720
  • 26
  • 45
4
votes
2 answers

Given a directed weighted graph with self loops ,find the list of nodes that are exactly k dist from a given node x?

Each edge in the graph has weight of 1,The graph may have cycles ,if a node has self loop it can be any distance from itself from 0 to infinity , depending on the no. of time we take the self loop. I have solved the problem using bfs, but the…
A. Sam
  • 893
  • 9
  • 23
4
votes
3 answers

Finding all non overlapping cycles in an undirected graph

I need to find all simple non overlapping cycles on undirected graph. To find all existing cycles I made an Objective-C version of the algorithm that I found here: Finding all cycles in undirected graphs @interface HSValue : NSObject @property…
Guferos
  • 4,337
  • 5
  • 18
  • 25
4
votes
2 answers

How to check for overlap of cyclic ranges (overlapping yearly recurring periods)

I am trying to find an elegant algorithm to check if two yearly recurring periods overlap. The period is year-agnostic, but a year can be expected to always be a leap year. For example, period A = (March 1st to May 1th,) and period B = (April 1st to…
Rabarberski
  • 23,854
  • 21
  • 74
  • 96
4
votes
3 answers

Cycling through Keys in a Dictionary

So I need to define some function in python that will print each dictionary key with each value separately. Everything is an Airport Code, so the output, for example, should look like "There is a direct flight from ORD to JFK." And I need to print…
CabooseMSG
  • 51
  • 10
4
votes
2 answers

Print all cycles of the graph for the specified node of the graph, Prolog

I'm newbie in the Prolog world. I'm trying to write predicate for printing all cycles of the graph for the specified node of the graph, which is the element of the given node. My graph looks like…
Chris
  • 43
  • 4
4
votes
3 answers

Using jQuery Cycle and ajax to dynamically create a slide show - images don't load immediately

I'm currently trying to make a cheap, simple slide show navigation box for a client (something along the lines of what, say, the Red Sox or Gamespot use on their sites, but far, far simpler). So far, it's actually coming along nicely, with one…
Major Productions
  • 5,914
  • 13
  • 70
  • 149
4
votes
0 answers

Convert cyclic directed graph to tree (Arborescence)

I have this requirement, where I want to convert a directed cyclic graph into a tree given 1 vertex, which will be the root. From my research I found out that I need to create an Arborescence, which HAS to be acyclic, in order to convert it into a…
Alex Arvanitidis
  • 4,403
  • 6
  • 26
  • 36