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

Checking for odd cycles in an undirected graph

I'm back with another similar question. I am currently working on a Java program that will check if a graph is 2-colorable, i.e. if it contains no odd cycles (cycles of odd number length). The entire algorithm is supposed to run in O(V+E) time (V…
devers
  • 163
  • 1
  • 11
4
votes
2 answers

What are cycles ? in relation to python

im using the fantastic eric4 ide to code python, it's got a tool built in called 'cyclops', which is apparently looking for cycles. After running it, it gives me a bunch of big bold red letters declaring there to be a multitude of cycles in my code.…
spearfire
  • 667
  • 1
  • 7
  • 15
4
votes
4 answers

How do I programmatically cycle a router?

I have the need to be able to cycle my linksys router via a program, the reason I want to do this is complex, so let's just assume there is no better option. Is there anyway to do this? I think there is because when I install a firmware update to…
shsteimer
  • 28,436
  • 30
  • 79
  • 95
4
votes
1 answer

How can I find a negative weighted cycle of 3 edges in a graph?

I have a directed graph with about 10,000 nodes. All edges are weighted. I want to find a negative cycle containing only 3 edges. Is there any algorithm quicker than O(n^3)? a sample code: (g is my graph) if (DETAILS) std::printf ("Calculating…
remo
  • 880
  • 2
  • 14
  • 32
4
votes
1 answer

Finding the minimal subgraph that contains all negative cycles

I'm stuck at the following problem: Given a weighted digraph G, I'd like to construct the minimal subgraph of G that contains all negative (simple) cycles of G. I do know how to find a negative cycle using Bellman-Ford, and I know that the number of…
4
votes
4 answers

jquery cycle automatically fit to window width on resize

If I resize the window and then refresh the slider and the images within will resize to match the browser width, however I need this to happen automatically on window resize.... how can this be done…
Toki
  • 517
  • 3
  • 9
  • 27
4
votes
1 answer

Fade in PNG fix for IE8

I am using the jQuery Cycle plugin to fade in an animation. This works fine on everything except for PNG files having half transparent pixels in them in IE8. The half transparent pixels are black during the fade. Things i tried: Unit PNG : Solved…
mat
  • 1,619
  • 1
  • 15
  • 25
3
votes
3 answers

Jquery Cycle plug-in is not working as I expected

I am trying to get a scrolling gallery implemented on my new website. I am using the Cycle plug-in. When I have the plug in set to effects "fade" or "shuffle" and a couple others it works fine but when I try to use my desired effect (scrollLeft or…
Dale
  • 580
  • 7
  • 20
3
votes
2 answers

Problem using jQuery cycle plugin as image rotator and a pager

I am trying to use jQuery in order to make a pager for tumbs and large images and I don't succeed. I am using this example from jQuery's site, I think I followed the direction but it doesn't seem to be worknig. I do see only the first image and not…
Shimmy Weitzhandler
  • 101,809
  • 122
  • 424
  • 632
3
votes
4 answers

Fastest algorithm for detecting a loop in a graph

Given an undirected graph what is the best algorithm to detect if it contains a cycle or not? A breadth first or depth first search while keeping track of visited nodes is one method, but it's O(n^2). Is there anything faster?
G S
  • 35,511
  • 22
  • 84
  • 118
3
votes
2 answers

Jquery Cycle Resize

I am trying to get Jquery Cycle to resize. So far I have been partly successful, it resizes but the slide transition is buggy... I can't understand why? Here's the whole page…
Jai Singh
  • 31
  • 1
  • 3
3
votes
3 answers

JS return next in array, cycle endlessly

I have a list of strings like so; var mystrings = [ 'apple', 'banana', 'orange' ] I would like a function I can call at anytime to get the next string. And when the end of the list is reached, start over and get the first one again. I…
Mathias Nielsen
  • 1,560
  • 1
  • 17
  • 31
3
votes
2 answers

Full screen jQuery Cycle, resize window

I'm trying to build a slideshow with jQuery Cycle where the images fills the entire browser, are adjusted so they're always centered and scrolls horizontally (scrollHorz) on click. It all works pretty good, but when I adjust browser window size,…
vorpyg
  • 2,505
  • 4
  • 25
  • 22
3
votes
3 answers

How to write Main-Loop for a server?

I have a simple fcgi server written in c++ - for now it's single threaded. I saw the main loop for example like accept_connections(); handle_data();` handle_connections(); but what if I want to respond to each client simultaneously? Because if I…
Zaffy
  • 16,801
  • 8
  • 50
  • 77
3
votes
1 answer

maven: resolving cyclic dependency

My java root project has source code and maven modules it depends on. One of these modules A has a cyclic dependency with the root project. What would be a recommended way to get rid of this cyclic dependency? UPD: I have solved it already before…
D_K
  • 1,410
  • 12
  • 35