• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar
  • Skip to secondary sidebar

GoHired

Interview Questions asked in Google, Microsoft, Amazon

Join WeekEnd Online Batch from 4-April-2020 on How to Crack Coding Interview in Just 10 Weeks : Fees just 20,000 INR

  • Home
  • Best Java Books
  • Algorithm
  • Internship
  • Certificates
  • About Us
  • Contact Us
  • Privacy Policy
  • Array
  • Stack
  • Queue
  • LinkedList
  • DP
  • Strings
  • Tree
  • Mathametical
  • Puzzles
  • Graph

Spanning Tree

March 1, 2014 by Dhaval Dave

In the mathematical field of graph theory, a spanning tree T of a connected, undirected graph G is a tree that includes all of the vertices and some or all of the edges of G.

Defination

A tree is a connected undirected graph with no cycles. It is a spanning tree of a graph G if it spans G (that is, it includes every vertex of G) and is a subgraph of G (every edge in the tree belongs to G). A spanning tree of a connected graph G can also be defined as a maximal set of edges of G that contains no cycle, or as a minimal set of edges that connect all vertices.

Similar Articles

Filed Under: problem Tagged With: Graph, tree

Reader Interactions

Primary Sidebar

Join WeekEnd Online/Offline Batch from 4-April-2020 on How to Crack Coding Interview in Just 10 Weeks : Fees just 20,000 INR

Join WeekEnd Online/Offline Batch from 4-April-2020

WhatsApp us

Secondary Sidebar

Custom Search

  • How I cracked AMAZON
  • LeetCode
  • Adobe
  • Amazon
  • Facebook
  • Microsoft
  • Hacker Earth
  • CSE Interview

Top Rated Questions

Hackerearth : Counting Subarrays

Coin Collection Dynamic Programming

Find Pythagorean Triplets in an array in O(N)

Find if two rectangles overlap

Check a String is SUBSEQUENCE of another String Find Minimum length for that ( DNA Matching )

Binary Tree in Java

System Design: Designing a LLD for Hotel Booking

Printing intermediate Integers between one element & next element of array

Given a sorted array and a number x, find the pair in array whose sum is closest to x

Stock Buy Sell to Maximize Profit

Length of the longest substring without repeating characters

Trapping Rain Water

Get Minimum element in O(1) from input numbers or Stack

Knight Tour Problem (Graph – Breadth First Search)

Binary Tree in Java

Search element in a matrix with all rows and columns in sorted order

Python String and numbers

Closed Parentheses checker

Inorder and Preorder traversals of a Binary Tree given. Output the Postorder traversal of it.

Printing Longest Common Subsequence

Urban Ladder Written Test.

Circular Linked List

Convert Decimal to Roman numbers / Romanizer HackerEarth Code

Check if an array has duplicate numbers in O(n) time and O(1) space

Puzzle : 100 doors in a row Visit and Toggle the door. What state the door will be after nth pass ?

Find if a binary tree is height balanced ?

Amazon Interview On-Campus For Internship – 1

Find the number ABCD such that when multipled by 4 gives DCBA.

Diagonal Traversal of Binary Tree

Maximum of all subarrays of size k

Copyright © 2026 · Genesis Framework · WordPress · Log in