Preview

Backtracking: Set and Solution Space

Good Essays
Open Document
Open Document
1196 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Backtracking: Set and Solution Space
Backtracking
General method • Useful technique for optimizing search under some constraints • Express the desired solution as an n-tuple (x1 , . . . , xn ) where each xi ∈ Si , Si being a finite set • The solution is based on finding one or more vectors that maximize, minimize, or satisfy a criterion function P (x1 , . . . , xn ) • Sorting an array a[n] – Find an n-tuple where the element xi is the index of ith smallest element in a – Criterion function is given by a[xi ] ≤ a[xi+1 ] for 1 ≤ i < n – Set Si is a finite set of integers in the range [1,n] • Brute force approach – Let the size of set Si be mi – There are m = m1 m2 · · · mn n-tuples that satisfy the criterion function P – In brute force algorithm, you have to form all the m n-tuples to determine the optimal solutions • Backtrack approach – Requires less than m trials to determine the solution – Form a solution (partial vector) and check at every step if this has any chance of success – If the solution at any point seems not-promising, ignore it – If the partial vector (x1 , x2 , . . . , xi ) does not yield an optimal solution, ignore mi+1 · · · mn possible test vectors even without looking at them • All the solutions require a set of constraints divided into two categories: explicit and implicit constraints Definition 1 Explicit constraints are rules that restrict each xi to take on values only from a given set. – Explicit constraints depend on the particular instance I of problem being solved – All tuples that satisfy the explicit constraints define a possible solution space for I – Examples of explicit constraints ∗ xi ≥ 0, or all nonnegative real numbers ∗ xi = {0, 1} ∗ li ≤ xi ≤ ui Definition 2 Implicit constraints are rules that determine which of the tuples in the solution space of I satisfy the criterion function. – Implicit constraints describe the way in which the xi s must relate to each other. • Determine problem solution by systematically searching the solution space for the given problem instance

You May Also Find These Documents Helpful

  • Good Essays

    4. Create subset: At this stage using an intelligent approach and non-coincidentally, answer that need to be combined are identified from the members of reference set. One advantage of this step is creating a subset that unlike genetic algorithms are not necessarily only has two members. This approach allows the solution space simultaneously affect more compounds for searching. So the probability of reaching better solutions increases.…

    • 623 Words
    • 3 Pages
    Good Essays
  • Better Essays

    Acme

    • 1450 Words
    • 8 Pages

    References: Knode, C.S. (2011). Linear programming - Part 1 - Formulating the problem [video]. Retrieved from: http://vimeo.com/duffer44/linear-programming-part-1…

    • 1450 Words
    • 8 Pages
    Better Essays
  • Good Essays

    Chapter 9 1. Two car manufacturers, Saab and Volvo, have fixed costs of $1 billion and constant marginal costs of $10,000 per car. If Saab produces 50,000 cars per year and Volvo produces 200,000, calculate the average fixed cost and average total cost for each company. On the basis of these costs, which company’s market share should grow in relative terms? Answer: Average total cost is average fixed cost plus marginal cost: ATC = FC/Q + MC. Volvo’s average fixed cost $1 billion/200,000 = 5,000 is much less than Saab’s average fixed cost $1 billion/50,000 = 20,000 due to producing more cars. Volvo’s average production cost $15,000 is lower than Saab’s of $30,000 by the difference in average fixed costs. Volvo’s market share should grow relative to Saab’s.…

    • 1096 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    LYT2 Task2

    • 4061 Words
    • 12 Pages

    Stein, S. S., Gerding, E. H., Rogers, A. C., Larson, K. K., & Jennings, N. R. (2011). Algorithms…

    • 4061 Words
    • 12 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Problem Set 1

    • 543 Words
    • 4 Pages

    b. Bob teaches 1 class at the University at night and volunteers 20 hours a week at the hospital.…

    • 543 Words
    • 4 Pages
    Satisfactory Essays
  • Better Essays

    I faced the fear of risk taking with my music. Since my early teens I would always be complimented for the music I created. The conceptual aspect of my messages were flawless and creative. The fear came from my peers hearing the lectures of “you would never make it in the business you’re not cut out for it”. Or the slanders of “by the time your 20…

    • 912 Words
    • 4 Pages
    Better Essays
  • Powerful Essays

    Kimmel, P. D., Weygandt, J. J., & Kieso, D. E. (2011). Financial accounting: Tools for business decision making (6th ed.). Hoboken, NJ: John Wiley & Sons.…

    • 2127 Words
    • 9 Pages
    Powerful Essays
  • Satisfactory Essays

    Problem Set 1

    • 344 Words
    • 2 Pages

    3. Examine the growth rates for Japan and South Korea. Have their growth rates changed over time?…

    • 344 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Problem Set

    • 464 Words
    • 2 Pages

    Vertical analysis (common-size) percentages for Vallejo Company’s sales, cost of goods sold, and expenses are listed below:…

    • 464 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    finding the best decision to optimize a linear objective subject to multiple linear constarints is referred to as…

    • 1510 Words
    • 7 Pages
    Powerful Essays
  • Satisfactory Essays

    Linear programming, the ability to find the smallest or biggest possible value under some constraints, is used in a typical optimization problem. In business this method helps to optimize solutions for politics, transportation scheduling, hospital stuffing, purchasing and many other problems. In biotechnology the same equation is used to optimize cell-factories, enabling the production of drugs, plastics, or any desired products.…

    • 501 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Problem Set

    • 676 Words
    • 3 Pages

    A theorem proposed by Professors Alchian and Allen in their text, University Economics (1964) has had several rebirths of interest in the literature. The so-called “third law of demand,” or “relative price theorem,” holds that a fixed cost added to a good of varying quality causes the consumer to prefer the category considered of higher quality to the lower.…

    • 676 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Problem Set Chapter 3

    • 899 Words
    • 4 Pages

    Actually outside of the subway system, a token satisfies none of the functions of money because even though your $2 dollar subway token will remain $2 for the next time you use it – it cannot be used for any sort of ‘store of value’ outside the system…making each function of money not applicable to the token.…

    • 899 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    linear programming

    • 354 Words
    • 2 Pages

    Spreadsheet Modeling and Excel Solver A mathematical model implemented in a spreadsheet is called a spreadsheet model. Major spreadsheet packages come with a built-in optimization tool called Solver. Now we demonstrate how to use Excel spreadsheet modeling and Solver to find the optimal solution of optimization problems. If the model has two variables, the graphical method can be used to solve the model. Very few real world problems involve only two variables. For problems with more than two variables, we need to use complex techniques and tedious calculations to find the optimal solution. The spreadsheet and solver approach makes solving optimization problems a fairly simple task and it is more useful for students who do not have strong mathematics background. The first step is to organize the spreadsheet to represent the model. We use separate cells to represent decision variables, create a formula in a cell to represent the objective function and create a formula in a cell for each constraint left hand side. Once the model is implemented in a spreadsheet, next step is to use the Solver to find the solution. In the Solver, we need to identify the locations (cells) of objective function, decision variables, nature of the objective function (maximize/minimize) and constraints. Example One (Linear model): Investment Problem Our first example illustrates how to allocate money to different bonds to maximize the total return (Ragsdale 2011, p. 121). A trust office at the Blacksburg National Bank needs to determine how to invest $100,000 in following collection of bonds to maximize the annual return. Bond Annual Return Maturity Risk Tax-Free A B C D E 9.5% 8.0% 9.0% 9.0% 9.0% Long Short Long Long Short High Low Low High High Yes Yes No Yes No The officer wants to invest at least 50% of the money in short term issues and no more than 50% in high-risk issues. At least 30% of the funds should go in tax-free investments, and at least 40% of the total return should be…

    • 354 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Maths Bigm Method

    • 2291 Words
    • 10 Pages

    slack variable si; and if constraint i is a > constraint, we subtract an excess variable ei). 3. Add an artificial variable ai to the constraints identified as > or = constraints at the end of Step 1. Also add the sign restriction ai > 0. 4. If the LP is a max problem, add (for each artificial variable) -Mai to the objective function where M denote a very large positive number. 5. If the LP is a min problem, add (for each artificial variable) Mai to the objective function. 6. Solve the transformed problem by the simplex . Since each artificial variable will be in the starting basis, all artificial variables must be eliminated from row 0 before beginning the simplex. Now…

    • 2291 Words
    • 10 Pages
    Powerful Essays

Related Topics