Level Up Coding

Coding tutorials and news. The developer homepage gitconnected.com && skilled.dev && levelup.dev

Follow publication

Member-only story

50 Mathematical Concepts For Better Programming (Part 8)

Dr. Ashish Bamania
Level Up Coding
Published in
5 min readDec 5, 2022

Photo by Joel Filipe on Unsplash

27. Euler’s Theorem & Graph Theory

The Graph theory originated in the 18th century with an interesting story.

Königsberg was a city in historic Prussia (modern-day Russia) with 7 bridges that crossed river Pregel.

The map of Königsberg (Image from Wikipedia)

It was asked:

Is it possible to walk around Königsberg crossing each bridge exactly once?

Note that it did not matter that we finished exactly where we started.

We will come back to this after learning a few terminologies.

Graph

A Graph is a mathematical structure that consists of:

  • vertices (also called nodes or points) (V) which are connected by
  • edges (also called links or lines) (E)

It is represented as:

G = (V, E)

Degree

The number of edges of a particular vertex is called its Degree.

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Written by Dr. Ashish Bamania

🍰 I simplify the latest advances in AI, Quantum Computing & Software Engineering for you | 📰 Subscribe to my newsletter here: https://intoai.pub

No responses yet

Write a response