Implement the decision tree about car problem

Assignment Help Data Structure & Algorithms
Reference no: EM13950222

Write and execute a program in the language of your choosing that solves the following problems. Submit source code and answers in the provided dropbox:

(1) generate a list of 10 random integer numbers between 1 and 100. generate a special random number called SUM between 100 and 200. The determine what subset of the 5 random numbers when added comes closest to SUM without exceeding it. A simple example with less than 6 numbers - 10,3,15,2,9 with SUM = 14 correct answer = is the subset 10,3

Notice you must try ALL subsets for this to be an ALGORITHM. No other algorithm exists. In what sense is this algorithm a 'search'.

(2) create a 2 dimensional array (10 by 10) that represents a maze: fill the maze with asterisks and then make a 'random' path of blanks from the lower left (0,0) element to the upper right (9,9) element. Create a maze running program that prints out the correct path. Your program should move square by square - if it finds and asterisk blocking its path, it searches the next adjacent square, etc. Submit 10 separate trials proving your program discovers the correct path. Each path MUST be random!

(3) Write a program that outputs all numbers of n digits or less that meet the following constraint: let the number be X and let the number of digits of the number be called n with each digit being d1,d2,..,dn. The d1**n + d2**n + .. + dn**n = X. For example : 371 meets this constraint because 3**3 + 7**3 + 1**3 = 371 ! But 11 does NOT meet the constraint because 1**2 + 1**2 does not equal 11. Test your code for N = 30

(4) Consider the addition problem below:

97426 PLAYS

8077 WELL

------- ---------

105503 BETTER

Notice that when a letter is substituted for a number (in version 2) then everything is consistent! Now solve the problem below:

DONALD where D = 5

GERALD

-------------

ROBERT

You may use a pencil and paper and show all work. To receive credit, you must present the solution in full and answer the following questions

(a) In what sense is this a state space search?

(b) what constrained your search from simply trying everything?

(1) read chapter 3 carefully and do the following problems: 3.14, 3.15 <--- these types of questions are midterm type THESE ARE UNGRADED AND THE ANSWERS ARE IN THIS FOLDER!

(2) Run weka and produce a decision tree for the WEATHER NOMINAL data - dump the decision tree in jpg format

DO not turn these in! Just do them.
-----------------------------
To use WEKA:

(1) activate weka

(2) under the WEKA GUI, select EXPLORER

(3) in Explorer select Classify - in the CHOOSE section, under decision trees, select j.48

(4) under the Preprocess TAB, under open file, select WEATHER NOMINAL this file should be in the Weka directory under DATA then hit START on the CLASSIFY menu in the lower left window you'll see am entry that says trees.j48 = select it and right click. Then select 'visualize tree' - you should see the decision tree.

Another example:

Bring up Weka and go to the EXPLORER Menu.

under OPEN FILE - navigate to the WEKA directory (on Windows, it's in C:Program Files/Weka/data

1. Select the IRIS dataset

After it loads, select the top tab CLASSIFY and select J.48 as the Algorithm you want.

Go head an run the classifier.

After it finishes classifying , you will see the results - to the far left, right click over the J.48 algorithm and select VISUALIZE TREE - this will show you the decision tree it created.

1. What is the depth first search order and the breadth first search order of the tree place in this weeks folder labeled "Tree.pdf". Your answer should be search type (DFS or BFS) and the numbers of the nodes in the order they are visited.

2. Implement the decision tree about car problem found in the Lesson USING CLIPS TO MAKE A RULE BASED SYSTEM at the end of this module. Submit source code and 5 test cases in the drop box provided.

3. Consider the "guess the number" problem discussed in class and the resulting decision trees. If I m thinking of a number between 1 and 7, draw ALL the decision trees that someone could use and circle the 'best' one - the tree with the LEAST questions in the form "is it less than or greater than number X". The tree with the LEAST questions is the SHALLOWEST.

Reference no: EM13950222

Questions Cloud

What amount does the required investment decline : How much must be invested today in order to generate a five year annuity of $1,000 (part A)? and (part B) by what amount does the required investment decline if the first payment of the five year annuity of $1,000 occurs two years from today, and the..
Current spot rate-using covered interest arbitrage : The current spot rate is C$1.376 and the one-year forward rate is C$1.318. The nominal risk-free rate in Canada is 4 percent while it is 8 percent in the U.S. Using covered interest arbitrage you can earn an extra _____ profit over that which you wou..
Describe your family dynamics from the functionalist : Describe your family dynamics from the functionalist, conflict, and symbolic interactionist perspectives. What are the sociological characteristics of religion in the United States
About the effective annual yield : Trevor Price bought 10-year bonds issued by Harvest Foods five years ago for $983.84. The bonds make semiannual coupon payments at a rate of 8.4 percent. If the current price of the bonds is $1,097.53, what is the yield that Trevor would earn by sell..
Implement the decision tree about car problem : Implement the decision tree about car problem found in the Lesson USING CLIPS TO MAKE A RULE BASED SYSTEM at the end of this module. Submit source code and 5 test cases in the drop box provided.
Complete the pillars of society matrix : Access the "Pillars of Society Matrix." Complete the matrix. Write a 100-150-word summary of your matrix with one to two resources
Concept of glycemic index and glycemic load in foods : In one paragraph, discuss the concept of glycemic index and glycemic load in foods. How do foods differ in these? In another paragraph, discuss the effects of consuming foods that are high or low in glycemic index and glycemic load. How do they a..
Estimating profits from currency futures and options : You received a premium on the put option of $.03 per unit. The exercise price was $1.38. Assume that one year ago, the spot rate of the British pound was $1.34, the one-year forward rate exhibited a discount of 2%, and the one-year futures price was ..
What is the present value of the cash flow stream : You wrote a piece of software that does a better job of allowing computers to network than any other program designed for this purpose. If the appropriate interest rate is 6 percent, what is the present value of the cash flow stream that the company ..

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Evaluate each of the following statements

If x = 5, y = 6, z = 4, and w = 3.5, evaluate each of the following statements, if possible. If it is not possible, state the reason.

  Write a concise summary about physical tamper-resistant

Write a concise summary (ideally one to two pages) of what you have learned about physical tamper-resistant devices.

  Determine the order of insertions

Determine the order of insertions with this set of numbers that will result in a perfectly balanced BST(Binary Search Tree) and show the result of a preorder traversal of this tree.

  Create a presentation describing the data types

Create a 10-12 slide presentation describing the data types. Include the following in your presentation: Introductory slide AND Slide for each data type

  Describe and analyze an algorithm

Describe and analyze an algorithm to determine, given the initial sequence of cards, the maximum number of points that you can collect playing against a perfect opponent.

  Draw the hierarchy chart and then plan logic for a program

Draw the hierarchy chart and then plan the logic for a program for the sales manager of The Couch Potato Furniture Company. The manager needs a program to determine the profit on any item sold

  Implement a method to delete every node from your bst

Implement a method to delete every node from your BST that contains a word that is 3 or fewer letters long (note that you must explicitly make these deletions, not fail to insert these words in the first place).

  Decision tree learninga describe the main steps in the

decision tree learninga describe the main steps in the basic decision tree learning algorithm. the table below contains

  Implement a virtual memory simulator based on demand paging

Will simulate the step by step execution of the OPT algorithm using the stored reference string; if there is no reference string stored yet, an error message must be displayed.

  What are the equivalence classes of this relation

Show that the reachability matrix R for an undirected graph with n vertices can be constructed in 0 ( n 2 )time.

  Propose an efficient data structure

Propose an efficient data structure that may hold the tour operator's data using a normalization process. Describe each step of the process that will enable you to have a 2nd Normal Form data structure.

  Use sequential search algortithm to locate the number

These numbers should be stored in an array. Use the sequential search algortithm to locate the number entered by the user. If the number is in the array, the program should display a message.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd