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 05-01-2008, 02:06 AM
Member
 
Join Date: May 2008
Posts: 1
danh789 is on a distinguished road
Help needed with some questions
Could ye guys help, I have some questions and I dont know the answers of them! any solutions would be great

Distinguish between composition and inheritance as used in object-oriented programming. As part of your answer, provide examples of different situations in which each would be more appropriate.

What is meant by recursion as an algorithmic strategy in working with abstract data structures, and why is such an approach considered worthwhile? Illustrate your answer with an example sorting algorithm in Java that can be sorted linearly and recursively.

Given an alphabet of {x,y,z} possessing the following frequency distributions {1/8, 1/4, 5/8}, show how this information may be used to construct a prefix code binary tree. Given the code 11000111100, show how this is decoded using this construct.

Any ideas??
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-01-2008, 03:21 AM
Zosden's Avatar
Senior Member
 
Join Date: Apr 2008
Posts: 386
Zosden is on a distinguished road
Wow that almost sounds like text book material. Heres some advice that will help you in the long run, read and read, and I can't stress it enough read. Look up tutorials online mess around with some dummy classes. This is the way you learn not by someone giving you the answer.
__________________
My IP address is 127.0.0.1
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 05-01-2008, 05:00 PM
sukatoa's Avatar
Senior Member
 
Join Date: Jan 2008
Location: Cebu City, Philippines
Posts: 527
sukatoa is on a distinguished road
Send a message via Yahoo to sukatoa
I really expect that this thread really asks some questions.....

What have you done so far?
__________________
A specific, detailed, simple, well elaborated, and "tested before asking" question may gather more quick replies. hopefully
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
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
Stuck on Two Questions, Please Help sylo18 New To Java 5 03-11-2008 03:03 AM
Just a Few Questions pringle New To Java 21 01-09-2008 08:21 PM
few java questions hiaslpix New To Java 4 01-01-2008 07:47 AM
questions Gilgamesh New To Java 3 11-28-2007 01:18 AM
3 Questions hiranya AWT / Swing 4 11-14-2007 06:57 AM


All times are GMT +3. The time now is 12:10 PM.


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