Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 17th, 2005, 4:24 PM   #1
zxasqwedc
Newbie
 
Join Date: Apr 2005
Posts: 5
Rep Power: 0 zxasqwedc is an unknown quantity at this point
Exclamation java homework.. please HELP!!

i take java lessons at univercity and i have to complete this homework before 21th April.. I do need your help very badly.. please help me!

-------------------------------------------------------------------
my homework questions>>>>>>>>

1-A sparse vector is a vector where most of the entries have 0 value. One
way to store sparse vectors would be to use regular double arrays, but
this would be a waste of storage since only a tiny ratio of the elements
of the array will have non-zero values. Come up with an idea that
reduces the space requirements of the vector and implement the following
items for a new class called SparseVector

* A constructor that creates a vector of n dimensions which
initially will have 0 values for all the dimensions.
* A put() method that will put a new non-zero value to a location in
the vector
* A get() method that will get the value stored in a specific location
* An add() method that will add another SparseVector and return the
result. You can assume that the vectors have same size.
* A multiply method that will multiply the vector with a constant


2-Write a new class SparseMatrix similar to SparseVector. Your class
should have similar versions of all the required methods and constructors.
------------------------------------------------------------------------

thnx very very much!!!
zxasqwedc is offline   Reply With Quote
Old Apr 17th, 2005, 5:39 PM   #2
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Give it a go, and tell us where you get stuck. You have a few days - get on with it.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Apr 17th, 2005, 11:47 PM   #3
Gigabytee
Newbie
 
Join Date: Apr 2005
Posts: 17
Rep Power: 0 Gigabytee is on a distinguished road
Ooble is right..
Everyone here is more than willing to help.. but u have to give it a shot first then ask when your stuck.. that is how you learn..
plus that will not be considered cheating it will be "helping"
----
Cheers,
Gigabytee
Gigabytee is offline   Reply With Quote
Old Apr 18th, 2005, 1:37 AM   #4
bl00dninja
Programming Guru
 
bl00dninja's Avatar
 
Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 5 bl00dninja is on a distinguished road
hell yeah dude, show us what you got so far!
__________________
i put on my robe and wizard hat...

Have you ever heard of Plato, Aristotle, Socrates?...Morons.
bl00dninja is offline   Reply With Quote
Old Apr 18th, 2005, 8:13 PM   #5
gamesage
Programmer
 
Join Date: Sep 2004
Location: Clemson, SC
Posts: 35
Rep Power: 0 gamesage is on a distinguished road
Send a message via AIM to gamesage
how much you wanna bet he gives up and goes to another forum?
__________________
Free Porn!!
gamesage is offline   Reply With Quote
Old Apr 18th, 2005, 9:46 PM   #6
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
We are not here to earn your diploma / degree... it does you no good, if you don't work through a solution yourself... and you hold no ground when you do not show effort on your part.
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Apr 18th, 2005, 11:25 PM   #7
xavier
Professional Programmer
 
xavier's Avatar
 
Join Date: Oct 2004
Location: .ro
Posts: 373
Rep Power: 4 xavier is on a distinguished road
Send a message via Yahoo to xavier
That's a definite 1 post member
__________________
Don't take life too seriously, it's not permanent !
xavier is offline   Reply With Quote
Old Apr 18th, 2005, 11:31 PM   #8
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
perhaps with their newly found free time, they can actually attempt their homework.
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Apr 19th, 2005, 2:26 AM   #9
Berto
Programming Guru
 
Join Date: Aug 2004
Posts: 1,022
Rep Power: 5 Berto is on a distinguished road
Send a message via AIM to Berto Send a message via MSN to Berto
lol i like the way he spelt university wrong
Berto is offline   Reply With Quote
Old Apr 23rd, 2005, 1:20 PM   #10
Childe Roland
Newbie
 
Childe Roland's Avatar
 
Join Date: Mar 2005
Posts: 17
Rep Power: 0 Childe Roland is on a distinguished road
You know I am taking a java class at my university, and i have never need to ask for someone to do my homework. It really just amazes me how lazy some people are.
Childe Roland is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:01 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC