16,004,778 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 12160712 (Top 16 by date)
Member 12160712
7-May-16 11:19am
View
Thank you so much! That was very helpful.
Member 12160712
7-May-16 10:20am
View
Thank you that worked! Just a question though I'm not familiar with a for loop that takes more than 3 parameters, and I noticed at the 4th parameter you used a comma instead of a semicolon, does the 4th parameter works in parallel with the 3rd one (i.e "i++")).
Member 12160712
27-Dec-15 11:29am
View
Thank you! I will look up more on .NET serialization.
Member 12160712
26-Dec-15 15:54pm
View
Thank you, this is very helpful. Does my updated version need abstraction too? Like I think why I'm not keen on abstraction is cuz I'm reading my data from a text file and I'm not really experienced enough with dealing with text files, so it gets confusing a bit when I think about it with abstraction.
Member 12160712
26-Dec-15 15:52pm
View
It did compile! But I actually updated it to a Dictionary < string, Dictionary < string, hashset < string> > >; as I didn't need the hashset I don't know why I did it in the first place. And this does compile too. If you could help me print the updated version of it that would be great.
Member 12160712
25-Dec-15 18:39pm
View
Thank you! I know it's really bad and I'm trying to abstract it a bit because it is really hard to work with, I'm trying to construct a graph that's read from a text file and this is how I was asked to visualize it but yeah I'm working on abstracting it, Thanks!
Member 12160712
25-Dec-15 18:10pm
View
I'm sorry but I have a question, what do you mean by the gethashkey function? I am not familiar with it in the c# language.
Member 12160712
21-Dec-15 11:13am
View
Sorry, I think I might have expressed myself wrongly... I am not actually reading the database via Linq, the database is stored in a text file. Its simplest format is:
movie 0/Z/A movie 1/A/B/C movie 2/D/E/A/B .....etc My problem is I don't know how to represent it in a way where I include the movies in the scenario. So far I was able to represent the actors and their neighbors or example A its neighbors are Z B C. Now I want to represent it that A and B are neighbors not only because there is an edge between them but because there are 3 different edges between them (i.e movie 1, movie 2, movie 7). page 22 in this link http://www.cs.princeton.edu/courses/archive/spring07/cos126/lectures/18.pdf kind of visualize how to draw it on paper but I don't know how to translate this in the form of a data structure, like from what I gathered it made the movies and the performers as nodes, which I can't fully understand.
Member 12160712
21-Dec-15 9:16am
View
Yes, thank you that would be great to see an example for it. And to answer your question if it's necessary I am not sure to be honest like at first I only made my graph as a standard adjacency list by using standard .Net Generic data-structures too with only nodes of actors and if 2 actors appeared in the same movie then there would be en edge between them, but now the problem is what if they appeared in more than one movie how to represent that in order to apply BFS on them that will show that there are 3 shortest paths movie1, movie 2, movie 7?
Member 12160712
20-Dec-15 22:37pm
View
Yeah, you did understand it! I will try to think again of how to represent my graph, Thank you!
Member 12160712
20-Dec-15 22:03pm
View
I'm sorry if I was a bit vague... No, what I meant is that I applied the Breadth first search algorithm to calculate the shortest path between each 2 actors, but now my problem is another 2 functions first a function called Relation Strength: If Actor A and actor B are directly linked with a degree of separation equal 1. The relation strength between them is three movies since they are directly appeared together in the three movies.
If Actor C and actor E are linked with a degree of separation equal 2 through either actor A, actor B or actor D. The relation strength should equal the max of the three options. The second function is to show this path, so in the situation for ActorA and Actor B, the path should be either movie0, movie1, movie7. So, now I would like to represent the graph while including the movies but I don't know how, so that's why I thought of the bipartite graph.
Member 12160712
20-Dec-15 12:25pm
View
Check the edit :)
Member 12160712
7-Dec-15 19:12pm
View
Yeah, you're right, it didn't work on my code as much as I wanted to and it could get confusing and messy on a bigger scale, hence I think hashset is the easiest and most reasonable answer to my question, like I have been trying for days and making lots of function to check but I never really thought of changing the type list to a Hashset so thank you, it worked perfectly!
Member 12160712
7-Dec-15 17:53pm
View
I am not sure I understand your question, have you misspelled any of the values of the array or the string value, there is no match in the array with the value!
Member 12160712
7-Dec-15 10:40am
View
No, I meant what you said second is that for anytime I add a new string to a certain key for eg "A" its values mustn't have duplicates i.e(B,C,C,D) I need it to be (B,C,D) And I think that the hashset was the answer to it as suggested by PIEBaldconsult. Thank you!
Member 12160712
6-Dec-15 20:00pm
View
Thank you so much!
Show More