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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T00:14:35+00:00 2026-05-11T00:14:35+00:00

My math classes are far behind, and I’m currently struggling to find a decent

  • 0

My math classes are far behind, and I’m currently struggling to find a decent solution to a problem I’m having: I have a tree, in which nodes are actions, and are ‘weighted’ according to multiple criteria : the cost of said action, the time it will take, the necessary resources, the disturbance, etc…

And I want to to find in this tree the path that minimizes both the cost AND the time for example, or the disturbance AND cost AND time, etc. My problem is that I have no idea on how to do it, except by coming up with a global cost function F(cost, time, resources,…), and apply a regular tree traversal algorithm using the result from F(…) as my only weight. But then, how do I come up with F ? Something like ‘F(cost, time, resources) = a * cost + b * time + c * resources’ feels very ‘unprofessional’…

Edit:

I wanted to avoid the word ‘summing’ as I wasn’t sure it was really the way to go, but in essence, that’s what I’m doing: computing a total cost for each ‘path’ or ‘branch’ that goes from that top node, to one of the leafs, and choosing the ‘path’ or ‘branch’ that minimizes the cost. The problem being that each node has a weight based on the time necessary, on financial cost, on resource usage, etc.

So it seems inevitable to have to come up with a formula, as Stephan says, that will reduce all these parameters to one global cost, per node, which I can then sum across nodes as I travel down the tree, and pick the path that minimizes the total cost.

So I guess my question really is, it there a methodology to choose that function ?

Thanks for your answers and comments, it’s starting to be a bit more clear in my head now.

  • 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. 2026-05-11T00:14:35+00:00Added an answer on May 11, 2026 at 12:14 am

    Let’s say we have four pairs (x, y) like (1, 4), (1, 5), (2, 3), (3, 3). Now you want to minimize ‘both x and y’. What do you mean? If you minimize first x and then y you end up with (1, 4). If you minimize first y and then x you find (2, 3).

    Unless you choose a global cost function F(x, y), like in your observation, I can’t see any meaning of ‘both’. (Anyway, once F is chosen, there may still be multiple minimum points.) By the way, in my opinion a linear combination (the positive multipliers a,b,c being understood as ‘weights’) is not ‘unprofessional’ at all, at least if you have no idea of what a more suitable cost function could be.

    Edit:

    So it seems inevitable to have to come up with a formula, as Stephan says, that will reduce all these parameters to one global cost, per node, which I can then sum across nodes as I travel down the tree, and pick the path that minimizes the total cost.

    Caution. Indeed this strategy makes sense only if F is linear. Surely cost, time, resources etc. are additive functions, in the sense that time(node1 -> node2 -> node3) = time(node1) + time(node2) + time(node3), but in general this is not the case for F, unless it is linear. (i.e. F(cost(node1 -> node2)) = F(cost(node1) + cost(node2)) != F(cost(node1)) + F(cost(node2)). )

    If you choose a nonlinear global cost function, the right strategy is to compute, for each node, the total cost, total time, total resources from the root to that node, and compute (then minimize) F only for the terminal nodes.

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

Sidebar

Related Questions

I'm having a problem whereby a loop which is instantiating two objects, which in
I need to do some large integer math. Are there any classes or structs
Math skills are becoming more and more essential, and I wonder where is a
I suck at math. I need to figure out how to calculate a video
I need to calculate Math.exp() from java very frequently, is it possible to get
I'm not a math guy in the least but I'm interested in learning about
The .net framework includes Math.IEEERemainder(x, y) in addition to the standard mod operator. What
Using assorted matrix math, I've solved a system of equations resulting in coefficients for
In many symbolic math systems, such as Matlab or Mathematica, you can use a
So in high school math, and probably college, we are taught how to use

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.