Abstract
In various applications such as discovering infinite loops in computer programs, periodic scheduling, communication systems etc. there are always requirement for cycle detection. Graph theories and algorithms are very helpful for this type of problems. In this paper, we proposed our new SUS_CycleDetection algorithm for detecting cycle in any directed graph, with the help of linked list. This algorithm has the ability to count total number of cycles in the graph along with displaying the set of vertices responsible for the formation of each cycle. A comparison is also made between the proposed algorithm and an existing algorithm in terms of their modes of execution. Informer, space is allocated during runtime and nodes are stored using linked list which is more efficient in terms of memory utilization while in the latter, space is allocated before execution and nodes are stored using queue.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Puczynski, P.: The cycle detection algorithms, Wroclaw University of Technology, Faculty of Management
Van Gelder, A.: Efficient loop detection in Prolog using the tortoise-and-hare technique. Journal of Logic Programming 4(1), 23–31 (1987), doi:10.1016/0743-1066(87)90020-3.
Silberschatz, A., Galvin, P., Gagne, G.: Operating System Concepts, p. 260. John Wiley & Sons, Inc. (2003) ISBN 0-471-25060-0
Nivasch, G.: Cycle detection using a stack. Information Processing Letters 90(3), 135–140 (2004), doi:10.1016/j.ipl.2004.01.016.
Rozenfeld, H.D., et al.: Statistics of cycles: how loopy is your network? J.Phys. A: Math.Gen. 38, 4589 (2005)
Medard, M., Lumetta, S.S.: Network reliability and fault tolerance. In: Proakis, J. (ed.) Wiley Encyclopaedia of Engineering
Liu, H., Wang, J.: A new way to enumerate cycles in graph., Tsinghua University, State Key Lab of Intelligent Technology and System Department of Computer Science and Technology
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2014 Springer International Publishing Switzerland
About this paper
Cite this paper
Rungta, S., Srivastava, S., Yadav, U.S., Rastogi, R. (2014). A Comparative Analysis of New Approach with an Existing Algorithm to Detect Cycles in a Directed Graph. In: Satapathy, S., Avadhani, P., Udgata, S., Lakshminarayana, S. (eds) ICT and Critical Infrastructure: Proceedings of the 48th Annual Convention of Computer Society of India- Vol II. Advances in Intelligent Systems and Computing, vol 249. Springer, Cham. https://doi.org/10.1007/978-3-319-03095-1_5
Download citation
DOI: https://doi.org/10.1007/978-3-319-03095-1_5
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-03094-4
Online ISBN: 978-3-319-03095-1
eBook Packages: EngineeringEngineering (R0)