Find Jobs
Hire Freelancers

Appending Numbers based on condition

$15-20 USD

Completed
Posted over 19 years ago

$15-20 USD

Paid on delivery
I have an array A() consisting of fixed number of rows and two columns. The first and second column in each row are numbers. For example, elements of matrix A() are: A(1,1)=1 A(1,2)=2 A(2,1)=3 A(2,2)=4 A(3,1)=4 A(3,2)=5 A(4,1)=6 A(4,2)=7 A(5,1)=7 A(5,2)=1 A(6,1)=7 A(6,2)=4 I want to create groups by combining the rows such that, the 2nd column of one row is equal to the 1st column of any other row. If the 2nd column of the row just combined is equal to 1st column of any other row, that is also appended to the result obtained before. For example, the result would be 1) 1 2 2) 3 4 4 5 (that means 3-4 and 4-5 or 3-4-5) 3) 6 7 7 1 4) 7 4 There are many possibilities of combining. For example, another combination can be: 1) 1 2 2) 3 4 4 5 3) 6 7 7 4 4) 7 1 Third possible combination: 1) 1 2 (row1 having 2 columns) 2) 3 4 (row2 having 2 columns) 3) 7 4 4 5 (row3 having 4 columns) 4) 6 7 7 1 (row 4 having 4 columns) I would like to have these results in an array (each number as one column for each row as shown above in the 3rd combination). I think if we obtain the 1st Array (the first combination), the other 2 can be obtained by manipulation and checking the numbers. It would be nice to have all possible combinations in 1 big array, But I should also know how many elements (or rows) exist for each combination. I am open to suggestions as to how I can have multiple combinations, either in 1 big array or different arrays. Kindly make this program as simple as possible as far as possible only using if and for statements. Dimension of array A starts from 1 and total number of rows in A are Ubound (A). If anything is not clear please inform me. Thanks. ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables): a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment. b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request. 3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement). ## Platform Visual Basic 6, Windows XP
Project ID: 3372824

About the project

13 proposals
Remote project
Active 20 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$1 USD in 2 days
4.5 (4 reviews)
4.0
4.0
13 freelancers are bidding on average $11 USD for this job
User Avatar
See private message.
$17 USD in 2 days
4.9 (67 reviews)
5.9
5.9
User Avatar
See private message.
$17 USD in 2 days
4.0 (18 reviews)
4.1
4.1
User Avatar
See private message.
$7.65 USD in 2 days
4.9 (7 reviews)
2.4
2.4
User Avatar
See private message.
$8.50 USD in 2 days
5.0 (9 reviews)
2.0
2.0
User Avatar
See private message.
$8.50 USD in 2 days
5.0 (13 reviews)
1.9
1.9
User Avatar
See private message.
$6.80 USD in 2 days
0.8 (4 reviews)
2.0
2.0
User Avatar
See private message.
$17 USD in 2 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$17 USD in 2 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$15.30 USD in 2 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$15.30 USD in 2 days
0.0 (1 review)
0.0
0.0
User Avatar
See private message.
$12.75 USD in 2 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$3.40 USD in 2 days
5.0 (3 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Melvindale, United States
5.0
6
Member since Sep 23, 2002

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.