A Comparative Analysis of New Approach with an Existing Algorithm to Detect Cycles in a Directed Graph

  • Shubham Rungta
  • Samiksha Srivastava
  • Uday Shankar Yadav
  • Rohit Rastogi
Part of the Advances in Intelligent Systems and Computing book series (AISC, volume 249)

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.

Keywords

Directed graph Cycle Linked list Graph theory Data structure 

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. 1.
    Puczynski, P.: The cycle detection algorithms, Wroclaw University of Technology, Faculty of ManagementGoogle Scholar
  2. 2.
    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.CrossRefMATHGoogle Scholar
  3. 3.
    Silberschatz, A., Galvin, P., Gagne, G.: Operating System Concepts, p. 260. John Wiley & Sons, Inc. (2003) ISBN 0-471-25060-0Google Scholar
  4. 4.
    Nivasch, G.: Cycle detection using a stack. Information Processing Letters 90(3), 135–140 (2004), doi:10.1016/j.ipl.2004.01.016.MathSciNetCrossRefMATHGoogle Scholar
  5. 5.
    Rozenfeld, H.D., et al.: Statistics of cycles: how loopy is your network? J.Phys. A: Math.Gen. 38, 4589 (2005)MathSciNetCrossRefMATHGoogle Scholar
  6. 6.
    Medard, M., Lumetta, S.S.: Network reliability and fault tolerance. In: Proakis, J. (ed.) Wiley Encyclopaedia of EngineeringGoogle Scholar
  7. 7.
    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 TechnologyGoogle Scholar

Copyright information

© Springer International Publishing Switzerland 2014

Authors and Affiliations

  • Shubham Rungta
    • 1
  • Samiksha Srivastava
    • 1
  • Uday Shankar Yadav
    • 1
  • Rohit Rastogi
    • 1
  1. 1.CSE DepartmentABES Engineering CollegeGhaziabadIndia

Personalised recommendations