Show Bid Request
Matrix
Bid Request Id: 61329
|
|
|
Posted by: |
SAN_30000 (3 ratings)
(Software buyer rating 10)
|
Non-action Ratio: |
Below Average - 55.00%
|
Buyer Security Verifications: |
Good
|
Approved on: |
May 4, 2003 9:38:54 PM EDT
|
Bidding Closes: |
May 6, 2003 4:44:17 PM EDT
|
Viewed (by coders): |
114 times
|
Deadline: |
5/7/2003
TIME EXPIRED
|
|
|
|
Description:
/*Program: Create a matrix using the matrixlist approach by inserting non zero elements into a list Matrix should have 4 columns and 4 rows Method used: public void insertElement (row,col,val).*/
import java.io.*;
class ElementNode
{ //Data members int row, col, val; ElementNode right, down;
//Constructor ElementNode (int _row, int _col, int _val) { row = _row; col = _col; val = _val; right = null; down = null; } }
class MatrixList { private ElementNode headerM; private int sizeRows, sizeCols; static final int infinity = -99; static final int dontcare = -11;
MatrixList() { sizeRows = 0; sizeCols = 0; headerM = null; }
MatrixList (int _sizeRows, int _sizeCols, ElementNode _headerM) { sizeRows = _sizeRows; sizeCols = _sizeCols; headerM = _headerM; }
public void createHeaderH(ElementNode headerM) { ElementNode tmp; ElementNode cNode = headerM; for(int j=1; j<=sizeCols; j++) { tmp = new ElementNode (infinity, j, dontcare); tmp.right = tmp; tmp.down = headerM;
cNode.down = tmp; cNode = tmp; } }
public void createHeadert(ElementNode headS) { ElementNode tmp; ElementNode rNode = headS; for(int j=1; j<=sizeRows; j++) { tmp = new ElementNode (j,infinity, dontcare); tmp.down = tmp; tmp.right = headS;
rNode.right = tmp; rNode = tmp; } } public void traceHeaderH (ElementNode headerM) { ElementNode cNode = headerM; while(cNode.down != headerM) { cNode = cNode.down; System.out.println("Horizontal Header Nodes:"); System.out.println("Row = " + cNode.row +"; " + "Column =" + cNode.col +"; " + "Value =" + cNode.val +"; ");
} }
Deliverables: below is the rest of the description that wouldn't fit in the description: public void traceHeaderV (ElementNode headerX) { ElementNode rNode = headerX; while(rNode.right != headerX) { rNode = rNode.right; System.out.println("Vertical Header Nodes:"); System.out.println("Row = " + rNode.row +"; "); System.out.println("Column = "+ rNode.col +"; "); System.out.println("Value = " + rNode.val +"; "); } } public void insertElement(int row, int col, int val, ElementNode master) { ElementNode m; m = master;
for(int i = 1; i <= sizeCols; i++) { m = m.right; m.down = new ElementNode (infinity, infinity, dontcare); createHeadert(m.down);
} m = master; for(int j = 1; j <= sizeRows; j++) { m = m.down; m.right = new ElementNode (infinity, infinity, dontcare); createHeaderH(m.right);
} m = master; for(int i = 1; i<= sizeCols; i++) { m = m.right; }
for(int j=1; j <= sizeRows; j++) { m = m.down; } m.val = val;
m = master; for(int j = 1; j <= sizeRows; j++) { m = m.down; } for(int i = 1; i <= sizeCols; i++) { m = m.right; } m.val = val;
} } public class Sparse01 { static final int infinity = -9; static final int dontcare = -1;
public static void main(String args[]) { ElementNode master; MatrixList matrixA, matrixB;
master = new ElementNode (infinity, infinity, dontcare); master.right = master; master.down = master;
System.out.println(""); System.out.println("Matrix A(-99: infinity, -11:don't care)"); System.out.println("=========================================="); matrixA = new MatrixList(3,3, master); matrixA.createHeaderH (master); matrixA.createHeadert (master);
System.out.println(""); matrixA.insertElement(1,1,1, master); matrixA.traceHeaderH(master); matrixA.traceHeaderV(master);
System.out.println(""); System.out.println("Matrix B(-99: infinity, -11:don't care)"); System.out.println("=========================================="); matrixB = new MatrixList(4,4, master); matrixB.createHeaderH (master); matrixB.createHeadert (master);
System.out.println(""); matrixB.traceHeaderH(master); matrixB.traceHeaderV(master); } }
This program needs to be finished by May 6, 2003(eastern) Written in java 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request.
3) Complete ownership and distribution copyrights to all work purchased.
Platform:
java
Must be 100% finished and received by buyer on:
May 7, 2003 EDT
Deadline legal notes: All times are expressed in the time zone of the site EDT (UT - 5). If the buyer omitted a time, then the deadline is 11:59:59 PM EDT on the indicated date.
Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements.
We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation.
If you notice a violation please help out the site and report it. Thanks for your help.
|
|
Bidding/Comments:
|
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests. |
See all rejected bids (and all comments)
Name |
Bid Amount |
Date |
Coder Rating |
|
|
|
N/A
|
May 4, 2003 10:18:23 PM EDT
|
9.8
(Excellent)
|
|
|
Greetings,
I am interested in doing this project for you. I am unsure exactly what you want as you have just pasted source code in. But I'm guessing that you need the function insertElement() implemented into this source code? Is this correct.
If you are interested in me doing this project for you then please reply to this, and send me the source code files, and I can post a bid for you and have the project done quickly and properly for you.
Kind Regards,
Michael Green
|
|
|
|
This bid was accepted by the buyer!
|
$15 (USD)
|
May 5, 2003 9:58:08 AM EDT
|
9.8
(Excellent)
|
|
|
A bid from mulgar for $15 (USD)...
|
Greetings SAN_30000,
From your comments and the source code that you have provided I am guessing
that you require the function insertElement() to be implemented. I can
do this for you and test to make sure that all the code works properly
and functions as a matrix implemented as a list.
Any information such as specifications or internet links (to subject sites)
that you could provide before or on accepting my bid to clarify things
would be appreciated. If you provide me with more information I may
decide that the project is easier or won't take long and then can offer
you a cheaper bid.
Regards, Michael Green
|
Summary of some points regarding myself and this project:
- I have a computer science degree and over 3 years of Java experience.
- I will be able to complete this project for you before the deadline,
so that you have enough time to get back to me with any problems or
concerns you may have.
- I will complete the project exactly according to given specifications
quickly well before due time, and it will be very neat and well
commented so you and other can understand it easily.
- I am happy to accept comments or suggestions after submitting work
and will change or fix anything up very quickly if it fits within
the specifications.
|
Communication, professionalism and quality.
|
|
|
|
|
|
|