My Math Forum  

Go Back   My Math Forum > High School Math Forum > Algebra

Algebra Pre-Algebra and Basic Algebra Math Forum


Reply
 
LinkBack Thread Tools Display Modes
May 16th, 2019, 12:47 AM   #1
Newbie
 
Joined: May 2019
From: munich

Posts: 1
Thanks: 0

compare trips based upon price

I'm writing an algorithm to compare travel trips. A trip is a combination of (1) a flight and (2) an accommodation. For now I'm only looking at the prices. I want to find the "best" trip based upon the price. The problem is that the flight price is a static value which doesn't increase by the amount of nights you spend. Vice versa, the accommodation price does increases each time the amount of nights increases.



Obviously, formulas like those might solve the question, but they don't:

q = flight_price+accommodation_price --> short trips are favored q = (flight_price+accommodation_price)/nights ---> long trips are favored

So what would be an appropriate indicator to say that a trip is "better"? This indicator doesn't need to provide a "real" price. It should rather give a value to compare the trips and put them in relation. Thank you.

Last edited by skipjack; May 16th, 2019 at 06:31 AM.
tylerdurdan is offline  
 
Reply

  My Math Forum > High School Math Forum > Algebra

Tags
based, compare, price, trips



Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compare the numbers Lefteris Moraitis Algebra 4 June 20th, 2014 05:01 AM
compare s and t Albert.Teng Algebra 8 August 24th, 2013 10:21 AM
marginal price and price-demand tsl182forever8 Calculus 2 March 15th, 2012 03:07 PM
Compare math4u Calculus 0 December 22nd, 2009 12:54 AM





Copyright © 2019 My Math Forum. All rights reserved.