Skip to main content

Graph Algorithms

  • Chapter
  • First Online:
  • 4670 Accesses

Part of the book series: Undergraduate Topics in Computer Science ((UTICS))

Abstract

Many programming problems can be solved by considering the situation as a graph and using an appropriate graph algorithm. In this chapter, we will learn the basics of graphs and a selection of important graph algorithms.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   34.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   44.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Notes

  1. 1.

    In some older compilers, the function make_tuple must be used instead of the braces (for example, make_tuple(1,2,5) instead of {1,2,5}).

  2. 2.

    Of course, we could also declare the priority queue as in Sect. 5.2.3 and use positive distances, but the implementation would be longer.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Antti Laaksonen .

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Switzerland AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Laaksonen, A. (2020). Graph Algorithms. In: Guide to Competitive Programming. Undergraduate Topics in Computer Science. Springer, Cham. https://doi.org/10.1007/978-3-030-39357-1_7

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-39357-1_7

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-39356-4

  • Online ISBN: 978-3-030-39357-1

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics