Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8644583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T12:19:52+00:00 2026-06-12T12:19:52+00:00

Problem: Given a tree T = (V,E) . Add minimum number of edges so

  • 0

Problem: Given a tree T = (V,E) . Add minimum number of edges so that even if one edge is removed from newly created graph still there is path from any vertex to any other vertex.

I believe the problem can be reduced to increasing the size of min-cut of graph to 2 from current min-cut of 1. But what will be an efficient algorithm to do so.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T12:19:54+00:00Added an answer on June 12, 2026 at 12:19 pm

    Here is algorithm, solving this problem for any undirected graph. It may be applied to a tree after some simplifications (step 1 is not needed).

    1. Find all bridges in the graph with DFS or with Bridge-finding algorithm by Robert Tarjan.
    2. Create a graph (in fact, it is a tree), where each bridgeless subgraph is substituted with a single vertex.
    3. Collapse every chain in the tree into a single edge.
    4. Find a path between two leaves (of length at least 3, when possible).
    5. Pick any two vertices in subgraphs of the original graph, corresponding to both ends of this path, and connect them.
    6. Collapse this path into a single vertex.
    7. While there is more than one vertex in the tree, repeat from step 3.

    Step 4 guarantees that we’ll not get a new unneeded leaf after step 6, which is key to optimality.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following problem: I am given a tree with N apples, for
First the practical application that led me to the problem: Given a set of
The problem is : Given a number of programming libraries with similar or equal
I have a homework question that says: Problem 1: Given the array [ 22
Here is the problem: Remove specified characters from a given string. Input: The string
So my problem is that I want to add an event handler to a
Hi I have the following problem. Given a Tree I want to be able
Given the following problem: Store the largest 5000 numbers from a stream of numbers
Problem Given a boolean expression consisting of the symbols 0, 1, &, |, ^
Problem Given the following two tables, I'd like to select all Ids for Posts

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.