Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-24-2008, 05:25 PM
Member
 
Join Date: Mar 2008
Posts: 3
Javashak is on a distinguished road
Graph program code,hardnut
Hey fellas,

Im workin on a program that reads a list from the table of 2 columns(text format).Iv created an interface that reads the table which is a linked list(the elemenst opposite to each other in thetable are said to have a link) and stores the values in the 2 dimensional arrays.The next step is to

1 )Count the number of times an element has occured on both sides of the table.i.e. how many links it has .any one know how to do that?

2 )Make an internal table that relabels te elements in the desecending order of number of times it has repeated(number of links it has).The element with the most links is labeled 1 and the element with the least number of links is labelled the last.

3 )All the elements linked to eachother are neighbours.If more than 1 element have the same number of links then they are sorted in descending order of their neighbours number of links(checking from the table above),comparing neighbours with the highest number of links,if thats the same then neighbours with 2nd largest number of links,until all neighbours have been compared.Incase the number of links for an element is still the same,the sort order does not matter.

4 )Finally when all the elements have been relabelled,the new labels will be put onto the initial table of links.

5 )The table will then be graphed with elements in the 1st column(x axis) against elements in the 2nd column(y axis).For each link therel be a dot both(x,y) and(y,x) wise.

If anyone can solve all or part of this ,il be thankful.More details can be provided if you dont understand any part.
xo
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help for Dot Plot Graph BHCluster Java 2D 5 04-15-2008 04:54 PM
Month and year program code!!!!HELP PLEASE!!! chitwood New To Java 0 02-10-2008 10:23 PM
Peculiarty in code of simple program... Kreuz14 New To Java 4 01-23-2008 05:27 AM
code for making a java swing program a demo verson fakhruddin AWT / Swing 1 11-27-2007 10:54 PM
Help with graph code example silvia Java 2D 1 07-30-2007 12:16 AM


All times are GMT +3. The time now is 11:39 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org