Jump to content

Help with project! Multiway decision tree on SQL


Recommended Posts

Hello,

 

Im working on my minor project for my Undergrad course.

I have no earlier experience on working with SQL, im the biggest noob if there ever was one.

 

For a part of my project i have to design a page using php and sql to query from a big student database selected details(Rank, Sex, Branch) and calculate the industrial placement chances and to construct a multiway decision search tree on SQL(im using WAMP server).

 

This page is supposed to help new students joining the college decide an ideal branch based on past performances and placement record. A new student will enter his rank and relevant details and the from the decision tree an ideal branch(es) with high placement history will be suggested.

 

My project assignment reads:

"Now from the above prepared data constuct a decision search tree implement it a either using association rules or persistent Objects and store it in secondary storage as shown

 

17595863gx7.jpg

 

Further studies can be done to improve existing decision trees ... data mining bayesian classifier blah blah blah ... "

 

What i have done till now is create a table in this format:

 

46853480yr1.jpg

 

But this hardly a tree. Rather i had flattened each path of the tree and made it into a table like:

[node] -> [node] -> [node] -> [leaf]

 

I have tried to read some text on how to do this, but its not making sence and most importantly im not sure what im reading is actually going to help me achieve my project goals. Right now stranded reading random articles. I have to do this within 5 days. I have asked people around here some professionals and teachers, noone seems to have done this before. A little help in direction would be greatly appreciated.

 

Regards

 

Anurag

I'm not sure I understand all your data so this may not help but here goes.  :P

 

You can use a type of full-text query to get a "score" and then order by col1, col3, col2... as required.

 

http://dev.mysql.com/doc/refman/5.0/en/fulltext-boolean.html

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.