×

 0 1 hello nowadays i am having a rough time learning graph because i face difficulty understanding adjacency matrix and list.I don't understand them very well.First help expecting from you all 1)am i the only one who faces this difficulty in these topics 2)can you drop a link to your dfs & bfs(or any other graph algorithm)implementation so that i can look upon it and try to implement them.(this will teach different ways to do same thing) 3)anyway to learn implementation effectively except geeksforgeeks(this website is good but i barely understand them :( ) PS: i have watched many video lectures but they don't teach implementation.my main point of concern is that i don't get good implementation source. asked 31 Jan '15, 13:51 33●5 accept rate: 0%

 0 I faced difficulty understanding graph(/trees) and everybody does. you can see my solution to this problem. Its a very basic tree (or graph) problem. For implementation of graph, best way is to see others solutions for graph problems from codechef and codeforces. answered 31 Jan '15, 14:35 149●3 accept rate: 17%
 0 hey i am in the same boat :D but yeah i think i might be able to help you a bit.yo might google codechef tags and there you can find questions taged with bfs or dfs or whatever you want.as per implementation part i would recomend doing those question and see their editorial.i am posting a editorial of one good question as per implementation part in this editorial even code is given do see it as you will learn a lot from it.you might also see these tutorials http://community.topcoder.com/tc?module=Static&d1=tutorials&d2=graphsDataStrucs1 http://community.topcoder.com/tc?module=Static&d1=tutorials&d2=graphsDataStrucs2 http://community.topcoder.com/tc?module=Static&d1=tutorials&d2=graphsDataStrucs3 you might also search quora for this there are really really good answers for any coding problem. this is the editorial which i was saying http://discuss.codechef.com/problems/DIGJUMP a link for the tagged problems of bfs http://www.codechef.com/tags/problems/bfs do some questions from here and do those which have more submission so it is to see the understandable code from others. hope this help as i said earlier i am in the same boat :D .. answered 31 Jan '15, 14:41 16●1 accept rate: 100%
 toggle preview community wiki:
Preview

By Email:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported
• mathemetical formulas in Latex between \$ symbol

Question tags:

×373

question asked: 31 Jan '15, 13:51

question was seen: 2,444 times

last updated: 31 Jan '15, 16:27