How to Solve Route Inspection Problems - Using the Chinese Postman Algorithm

A simple tutorial on how to solve route inspection problems using the Chinese Postman Algorithm (I don't know why it is called that either).
Route Inspection is used to find routes down every road, usually returning to the start!
This tutorialwas originally requested via twitter @mathormaths. Videos are made to request, to keep updated check out mathmathsmathematics.

Пікірлер: 73

  • @Photoholic0105
    @Photoholic010511 жыл бұрын

    Got my D1 exam in 3 days, forgot how to do this... You're an absolute legend!

  • @tomaszwhitehead7339
    @tomaszwhitehead73397 жыл бұрын

    konecheewagwarn

  • @JartaYT

    @JartaYT

    6 жыл бұрын

    Tomasz Whitehead I'm creasing

  • @rishabhtripathi4002

    @rishabhtripathi4002

    3 жыл бұрын

    It means - Hello, What's going on ?

  • @Vitcodb
    @Vitcodb7 жыл бұрын

    Great comment on how we can find the shortest path with different endpoints! Gave me a much needed starting point for modifying "Eulerian Cyclic" to find an "Eulerian Path"!

  • @BendenDrijver
    @BendenDrijver9 жыл бұрын

    Very informative. Clear, simple and to the point. Thanks for the help!

  • @theelysium1597
    @theelysium1597 Жыл бұрын

    Great video! The last algorithm (where to start and finish) was explained specific to the problem. If you think about graphs that are larger, you will notice that you have to expand the explanation a little to make it truly work. You have to minimize no longer the total, but the total of all pairs except one (which contains start and end). Since in this example "the total of all pairs except one" is just one pair, you are picking the smallest pair which is 3. Just to help understanding the logic behind it :)

  • @ItzCguLd
    @ItzCguLd9 жыл бұрын

    You have no idea how much this has helped me, thankyou!!

  • @skyhi9383
    @skyhi93833 жыл бұрын

    When You made the video I was in class 8th and would never imagine that time that this would help me after so many years. Great explanation thank You so much, Man.

  • @mirageowl
    @mirageowl6 жыл бұрын

    I don't think this will come up in the exam, but I wish it does. Great explanation, thanks for the video!

  • @paulofortza3301
    @paulofortza33015 жыл бұрын

    Knew a Japanese Jamaican guy who use to spit bars and start off with KonichiWagwarn

  • @waynebrehaut7183
    @waynebrehaut71839 жыл бұрын

    @Matthew Jenkinson: What is often considered the first theorem in graph theory was Euler's solution to the Seven Bridges of Königsberg Puzzle. It is based on the simple observation that "The number of odd nodes in a graph is even." To see (or prove?) this, note that each edge has 2 ends, so the sum of the degrees of all nodes (= the total number of edge-ends) is even; since the sum of the degrees of all even nodes must obviously be even, then so must be the sum of the degrees of all odd nodes; but the sum of an odd number of odd numbers can never be even, so there must be an even number of odd nodes. Or, put otherwise, draw me a graph with exactly 3 odd nodes then I'll answer your question...

  • @eman4show
    @eman4show11 жыл бұрын

    I used this last year for my exam it is amazing thank you!!!! i got a U though

  • @taneilya143
    @taneilya1437 жыл бұрын

    Cool this was nice, simple, and straight to the point. I didn't learn about algorithms in school and idk. My teacher said we were skipping that unit and we did. Again, idk why. But I was curious as to how these work and I wanted to know how to solve some of them. This was a great example. From watching this I found another way to solve the first question without having to do all the work (although ppl should learn how to do the work lol) But I noticed all you have to do is start at point A, find the shortest path by eye (as you mentioned) then add the path you took. ( now unless you're fully aware of what you're doing I suggest that you learn how to do the work if you don't have a good eye. Because it is trial and error as he mentions. But doing the work would help to double check for the correct answer.) I know this is a lot but that's just what I noticed. I just like finding other ways to do things whether it's simple or complex. Lol, well thanks for this tutorial!! You just gained a new subscriber

  • @rp8832
    @rp88322 жыл бұрын

    Thank you. Your video really helped me in the exam I just had....

  • @embersaw3630
    @embersaw36302 жыл бұрын

    MAN TOTALLY LOVE YOU AND THANK YOU SO MUCH

  • @turtlebeachpro0
    @turtlebeachpro03 жыл бұрын

    Thankyou! I had no idea what was meant by the pairings and thought they were just pulling the pairs out of their arse 😂 now i know it it seems so simple.

  • @jakequaza3567
    @jakequaza35674 жыл бұрын

    Thanks for the helpful video! Been stuck on homework but i get it now!

  • @vashappeninjas
    @vashappeninjas7 жыл бұрын

    finally understood how to do that start & finish part :) thank you!

  • @cheskabata4668
    @cheskabata46686 жыл бұрын

    what if there is an odd number of vertices with an odd # of edges, how will i do the pairings?

  • @therealjordiano
    @therealjordiano12 жыл бұрын

    thank you sooo much :O especially on the last bit with the ... starting and finishing at a different place

  • @christianchristian1286
    @christianchristian12867 жыл бұрын

    Hey, i hope this reaches you, could you please make a video on Critical Path Analysis? I really appreciate your videos!!

  • @moikeymoikey77
    @moikeymoikey7711 жыл бұрын

    that fact you sound like derren brown definitely helps.

  • @ambercole3181
    @ambercole31817 жыл бұрын

    thank you so much for this tutorial. it really helped me a lot

  • @MrEdinaldolaroque
    @MrEdinaldolaroque6 жыл бұрын

    This video helped me a lot. Thank you!

  • @hah1738
    @hah17388 жыл бұрын

    5:42 down the blow rude

  • @aminelagab4830

    @aminelagab4830

    5 жыл бұрын

    haha !!

  • @MaxCBPCenter
    @MaxCBPCenter5 жыл бұрын

    @MathMathsMathematics I think the task you have written is wrong. "find a route round all points from A with the least cost" should say "find a route round all EDGES from A with the least cost" or am I wrong? But you sad it right.

  • @Ken5Masters
    @Ken5Masters6 жыл бұрын

    Great tutorial, it helped a lot, thank you :)

  • @gilbertvirgo5672
    @gilbertvirgo56727 жыл бұрын

    Konnichiwagwan lol

  • @NotMrAwais
    @NotMrAwais8 жыл бұрын

    Helped me a lot. Thanks

  • @aminelagab4830
    @aminelagab48305 жыл бұрын

    i love you

  • @judithtetteyfio980
    @judithtetteyfio9806 жыл бұрын

    is it a eulerian trail

  • @harivignesh7088
    @harivignesh70886 жыл бұрын

    thank you!!! I have exam today

  • @navzz2678
    @navzz26783 жыл бұрын

    great video. how would you do chinese postman problems with 6 odd nodes rather than 4?

  • @Kartalizm1903
    @Kartalizm19037 жыл бұрын

    Thank you very much!

  • @mztpar
    @mztpar7 жыл бұрын

    Thank you so much you saved me.

  • @Adarsh-mn7pl
    @Adarsh-mn7pl3 жыл бұрын

    you deserve subscription, like and comment tooo....that's all i can do for u

  • @neftalihill5519
    @neftalihill55195 жыл бұрын

    which program you said we can use to make this quicker in real life?

  • @Davina335
    @Davina33512 жыл бұрын

    THAT VIDEO WAS AMAZING!! could you do a dijkstra video please. I have an exam tomorrow morning and I still dont get it ;/

  • @ralph2327
    @ralph23279 жыл бұрын

    can ds algorithm be apply to ds kind of problem ?how should one to locate ambulance stations so as to best serve the needs of the community?

  • @Oma750
    @Oma7506 жыл бұрын

    but, if you go ABCEDA it's worth 13

  • @ScribbleDribble
    @ScribbleDribble8 жыл бұрын

    Thanks!

  • @esae6687
    @esae668711 жыл бұрын

    helped soo much

  • @jtdabraham7638
    @jtdabraham76387 жыл бұрын

    This helped

  • @Screech891
    @Screech89112 жыл бұрын

    The examinations person at my school always says never to use a pencil as it doesnt scan through when the exam boards take the papers in, but i always use pencil when doing djikstras and the gantt diagrams etc in case i make a mistake, any advice on this?

  • @faisalalbattashi7440
    @faisalalbattashi74402 ай бұрын

    the konichi wagwan killed me in the beginning xd it's not even chinese man its japanese xdddd Good shit tho

  • @MrShubby12
    @MrShubby128 жыл бұрын

    what if you have all vertices with even degrees?

  • @TheGreenNarwhal

    @TheGreenNarwhal

    8 жыл бұрын

    the route length is just all the edges added together because you can draw a route without repeating an edge

  • @luketanner6373

    @luketanner6373

    6 жыл бұрын

    What TheGreenNarwhal said. That is true because an undirected graph with only even-degree vertices is a cycle. Unless it is a tree but hopefully you aren't running such an algorithm on a tree. xD

  • @mirageowl

    @mirageowl

    6 жыл бұрын

    wait what, how do you make a tree with only even degree vertices?

  • @luketanner6373

    @luketanner6373

    6 жыл бұрын

    MirageOwl what do you mean? Think binary trees, quad-trees, oct-trees, etc.

  • @mirageowl

    @mirageowl

    6 жыл бұрын

    Leafs in those trees have degree 1. (and for example internal nodes in a binary tree has degee 3 I think, only the root would have even degree)

  • @The_Promised_Neverland...
    @The_Promised_Neverland...3 жыл бұрын

    Commenting so someone can reply on my comment after 10years...Nostalgia

  • @mikeup91
    @mikeup9110 жыл бұрын

    What if you have 4 posibilities in a node?

  • @waynebrehaut7183

    @waynebrehaut7183

    9 жыл бұрын

    Miguel Angel Corona Sandoval Then the Euler path will pass through that node twice unless it's the start of the path--in which case it will both start and end there and pass through it one other time.

  • @ZER0--
    @ZER0--9 жыл бұрын

    He didn't explain why the lines where numbered in the way they were. Why is line 3 , 3, and line 4, 4, etc ? Btw I am not a maths graduate I was just interested in this problem.

  • @raghavtripathi564

    @raghavtripathi564

    9 жыл бұрын

    Paul L These lines are called edges, Number shown next to the edges is the value or weight of that edge. For example suppose the graph in the video is a road map then distance from Street A to Street B is 1 KM, From B to C is 3 KM, from D to E is 4 KM and so on.

  • @ZER0--

    @ZER0--

    9 жыл бұрын

    Raghav Tripathi Thanx, I did go on to find out, but thanx anyway.

  • @Janokins
    @Janokins11 жыл бұрын

    What do you do if you've got 3 odd nodes and are trying to pair them? should I write down all the possible combinations or is there a better way?

  • @mirageowl

    @mirageowl

    6 жыл бұрын

    The number of odd degree vertices has to be even, because sum of all the degrees should be twice the number of edges. Every edge goes out of one node and goes into one node, so every edge counts as an in and an out degree, contributing 2 to the sum of degrees.

  • @darren3001jackson
    @darren3001jackson11 жыл бұрын

    screech, do it in pencil and go over it in pen when you are sure you're right maybe?

  • @srsautomotive3104
    @srsautomotive31047 жыл бұрын

    Its 25 not 24

  • @jacobmcloughlin8278

    @jacobmcloughlin8278

    7 жыл бұрын

    1+2+3+4+5+6+1+2=24 Don't know where you got 25 from

  • @lwintheinazeezahnaing256

    @lwintheinazeezahnaing256

    7 жыл бұрын

    Dumb

  • @Regalman
    @Regalman4 жыл бұрын

    Are you eating????