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 7767287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:38:22+00:00 2026-06-01T15:38:22+00:00

I’m trying to determine the optimal search case to compare to a search algorithm

  • 0

I’m trying to determine the optimal search case to compare to a search algorithm I have written.

I have a set of nodes marked “required” and a node marked “start”, the rest are marked “optional”. I want to find the optimal number of nodes I would need to expand to discover all of the required nodes given that I my first expand is the “start” node.

  • I believe what I am looking for is the minimum spanning tree, but pruned of all branches that do not end in a “required” node. Is this the Steiner tree problem?
  • If my graph is unweighted, is the size of the Steiner tree and the
    Minimum Spanning Tree the same?
  • What if anything can I say about the size of the tree? i.e. something like (size of minimum spanning tree size = average shortest path * # required nodes…I don’t think this is true, but it would be nice to be able to calculate an average based on connectedness or something).

A few notes:

  1. This is not traveling sales problem because I don’t need a path
    to exist between each required node, I just want to discover each
    required node.
  2. My graph is undirected and unweighted (or equally weighted for that matter)
  3. My graph has an average of about 100 required nodes, and possibly thousands of optional nodes
  • 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-01T15:38:23+00:00Added an answer on June 1, 2026 at 3:38 pm

    I have a set of nodes marked “required” and a node marked “start”, the
    rest are marked “optional”. I want to find the optimal number of nodes
    I would need to expand to discover all of the required nodes given
    that I my first expand is the “start” node.

    If the cost of expanding a node can be arbitrary, then this is the node-weighted Steiner tree problem, which, under a plausible complexity-theoretic assumption, has no polynomial-time approximation algorithm with a ratio that’s o(log n).

    I believe what I am looking for is the minimum spanning tree, but
    pruned of all branches that do not end in a “required” node.

    No, this is in general not optimal. For example, with the graph

           s
          /|\
         / | \
        *  |  *
       /   |   \
      /    |    \
     r1----*----r2,
    

    one possible MST looks like /|\ or /\ when pruned, but the optimal solution looks like _|_.

    What if anything can I say about the size of the tree?

    Theoretically speaking, you could get a lower bound by solving the dual of the LP relaxation of the integer program for Steiner tree (actually with a graph of a the size you’re thinking about, it wouldn’t surprise me if a solver could determine the optimal Steiner tree straight up).

    Practically speaking, however, this is not how people evaluate search algorithms.

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am trying to loop through a bunch of documents I have to put
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
this is what i have right now Drawing an RSS feed into the php,
I am trying to render a haml file in a javascript response like so:
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have a French site that I want to parse, but am running into

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.