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

  • SEARCH
  • Home
  • 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 7073601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:56:56+00:00 2026-05-28T05:56:56+00:00

I am looking for a Integer LP formalisation for the k-Minimum Spanning Tree problem

  • 0

I am looking for a Integer LP formalisation for the k-Minimum Spanning Tree problem.

My idea:

  • x_ij = 1 means there is an edge from i to j in the tree.
  • y_i = 1 means vertex i is part of the tree
  • c_ij are the costs for the edge from i to j

objective function:
min sum(x_ij*c_ij) for all i,j

constraints:

  1. sum y_i = k (1)
  2. sum(x_ij) for all j and some i >= yi (2)
  3. sum(x_ji) for all j and some i >= yi (3)
  4. 2*x_ij <= yi+yj

(1) makes sure that there are exactly k vertices in the MST. (2) and (3) make sure that if node i is in the tree at least one edge that contains that node is in the tree. (4) says that if there is an edge between i and j in the tree, then also the vertices i and j have to be in the tree.

Unfortunately that does not work as expected. Does anyone know my mistake?

  • 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-05-28T05:56:57+00:00Added an answer on May 28, 2026 at 5:56 am

    You need to ensure that the subgraph chosen is connected.

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

Sidebar

Related Questions

I am looking for solution to pick number randomly from an integer array. For
I'm looking form a programatic way to take an integer sequence and spit out
I'm looking for an easy and reversible method of obfuscating integer IDs. Ideally, I'd
I'm looking for a way to set the checked property based on an integer
While looking in the code of the method: Integer.toHexString I found the following code
I'm looking for the fastest way to do an integer division in php. for
I am looking for a single line command in python to convert an integer
I am looking to combine the following queries into one, where scouting.jumpGate is integer,
I'm looking for a string indexof function from the std namespace that returns an
I'm looking for a way to handle integer ordinalization in Ruby/Rails, ie. st, nd,

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.