2d arrays

A

Ajay

hi!

i am trying to do something as follows:
i have a set of id's. These are from 4-10.
I also have a set of users. Users have values for some of these id's
thus, userA could have userA(4)=7, userA(6)=4 and userB may only have
userB(7)=3

what i am trying to do is to make this into a 2d array

id's/users 4 5 6 7 8 9 10
userA 7 4
userB 3
userC 3 4

and so on. Has anyone done this before? if yes, do you mind sharing how.
the problem is user information is stored in a db and all id's are stored
in a table.
so first of all, i get the entire range of id's from a table.
i then need to go through all user tables and get their corresponding
values and do this in an efficient way.

btw, has anyone worked on a recommender system that uses collaborative
filtering with cosine similarity measure.

thanks

cheers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top