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

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

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