Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My apologies for not knowing the correct terminology - this is my first coding project. Here is a description of my goal:

I want to build an app for playgroups. The idea would be that there is a matrix of 'liking' relationships that would help the user build a playgroup where everyone would get along with one another. For example:

------Aaron Betty Carla David
Aaron   1     0     1     1
Betty   0     1     1     0
Carla   1     1     1     0
David   1     0     0     1

1= they like each other
0= they don't


The idea would be that the user could select 'Aaron' from a list, and after having done so, another list would populate with people who get along with Aaron. In this case it's Carla and David. The user could then select Carla and see who gets along with both Aaron and Carla - in this case, David. So the user would know they they could have a successful playgroup with Aaron and Carla, Aaron and David, Aaron David and Carla, but not Aaron David Carla and Betty.

I am frankly not even sure how to go about beginning building this mobile / web app. I am just looking for where to go to teach myself about how to do this.

Thanks so much for your time.

What I have tried:

I've searched youtube videos, googled, stack exchange, crowdsourced on facebook, tried to see if this was sort of like a recipe building app problem -- I haven't quite been able to find an answer to this specific task.
Posted
Updated 6-Jun-17 18:13pm
v2
Comments
PIEBALDconsult 7-Jun-17 0:31am    
Or Set theory.
Build Sets of friends for each candidate and find the Union.
PIEBALDconsult 7-Jun-17 0:34am    
A database and a Recursive Common Table Expression.
Kornfeld Eliyahu Peter 7-Jun-17 9:35am    
And what would you do when A likes B, but B dislikes A?
Does it 0 or a 1 in your table?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900