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

  Create a web page named bin.html that performs binary search

The sort method, when applied to an array of strings, returns a copy of that array in which the strings appear in alphabetical order. For example, if the variable words stored the array ["foo", "bar", "biz"], then the call words .sort() would retu..

  Train a back-propagation neural network

What kind of real-world problems can be solved using the tool and What is the actual running environment (software and hardware) of the tool?

  Spreadsheet to compute projected total costs and profits

Prepare a spreadsheet to compute your projected total costs, total revenues, and total profits for giving seminar on cost estimating.

  Algorithm to take input m constraints over n variables

For instance, the constraints x1 = x2, x2 = x3, x3 = x4, and x1 6= x4 cannot be satis fied. Give an efficient algorithm that takes as input m constraints over n variables and decides whether the constraints can be satis fied.

  Implementing a simple spell checking program

Implementing a simple spell checking program using binary search trees. One of the most-used applications of computers today is checking spelling. In this question, you will load a large dictionary (approximately 173,529 words) into a binary searc..

  Using java, design and implement an api euclidean graph

Using Java, design and implement an API EuclideanGraph for graphs whose vertices are points in the plane that include coordinates.

  Steps of asymmetric encryption algorithms to read message

Using only asymmetric encryption algorithms write down any steps taken by Bob which permit him to read the message.

  Find the kth largest value in an unsorted array of n element

find the kth largest value in an unsorted array of N elements. Estimate the running time. It should be better than quick sort running time.

  Consider that the size of the hash tab is m=16. apply linear

Consider that the size of the hastable is M=16. Apply linear probing with f(i)=i for the following keys. Convert each of the keys to a number associated with the sequence of English alphabet and then draw a table that indicates successful and unsucce..

  Questionlearning for numeric predictiona let the weights of

questionlearning for numeric predictiona let the weights of a two-input perceptron be w0 02 w1 05 and w2 05.

  Insertion sort and merged using standard merging mechanism

Using "insertion sort" and then merged using standard merging mechanism, where k is value to be determined. How must be we select k in practice?

  What would be the slowest time the algorithm can run

What would be the slowest time the algorithm can run (in terms of n). What input would cause this slowest time. What would be the fastest time your algorithm could run (in terms of n). For what input would this fastest time be achieved.

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