#how do I do this
200 messages · Page 1 of 1 (latest)
- Ask your question and show the work you've done so far. If you've posted a screenshot of a question, specify which part you need help with.
- Wait patiently for a helper to come along.
- Once someone helps you, say thank you and close the thread with:
+close - Feel free to nominate the person for helper of the week in #helper-nominations
- Do not ping the mods, unless someone is breaking the rules.
- If you're happy with the help you got here, and the server overall, you can contribute financially as well:
oh
well i mean it is just kruskal algorithm
yes
but then what do
becuase i need it to be traversable
like i do the even odd thing i was thinking
that is?
how
the mst is not traversable
we need the shortest traversbale path that goes thorugh all point and where we can start at i and fisnh at o
if i udnerstood the question right
traversable as in it has an euler trail?
like a subgraph
oh wait
and we msut go to all node atleast once
you have to be able to like
visit all point
without going through an edge twice
or it being disconnected
yes
ah
uhm
this is the exact question The inspector
would need the water to be flowing downhill, from the top at I, to the bottom at O. However, he wishes to have the water flowing through each of the other take points (in and out) so the water doesn't become stagnant. What is the shortest possible total length of such a system?
the marking is a bit confusing
like the weight is kinda all over the place, could you write it down more nicely?
what we try to find here is actually a tree without branches like a straight zigzag
since if there were to be branches
you would be forced to rewalk an edge twice
which is not allowed
that is a tree with branches
which is non really traversable
yes
we are tryna find like
but that was the first step right
that is jsut the shortest path
yes i get what you mean
yeah it could help
but how do i know which to add on to get the shortest path
becuase there is more then 1 option i think
isit liek even and odd nodes we look at and then connect the odd nodes thats what i thoguht but i have no idea
another thing in my mind is that you need to remove like 6 edges
so that could be helpful
so we dont over remove or under remove
oh i see
but we already got a short path we jsut to add to that to make it traverable
but i see what you mean
it could be not soo simple
since it could be a completely different algorithm
it probaly is its high school
still be caution
we never learnt any other algothrim besides kruskals and traverablity
so we proably have to use that
i suppose
but do you know how
how do i make the shortest path traversbale
like what do i add and why
there is an algorithm actually
oh ok whats it called
but is it possible to do it terms of even and odd ndoes. I am confused because like do all od them need to be even. And only two odd.
im maybe wrong
100% we aint expected to use that we have to use kruskals
faulty memories
haha and then what we know about what makes a groah traversbakle
actually i think you can like
remove edges so that you will have a graph of even degree yes
what do you think how would we get from the mst to a traverable graph. using like the even and odd nodes thing
and calculate the weight we remove by removing said egdes
but dose i and o have to be odd
or can everhtign be even
yeah no need
cus we have to start and finsh
igth whats the step
remove like edges so that we have a graph of which all degree 2
wait what
we can only add the context dose not allow us to remove paths
like we cna not indluce them
but we cant remove them
yes
basically it is just a way for us to say "let's say we will not use this edges"
as our path
from the main graph
remove the edges so that the final graph is basically a cycle that go through every vertices
that is removing any edges you like
at long as you have a cycle that go through all the point in the end
but it looks like there is more then one option to do that\
yes
and that will effect the end result
we are doing this multiple time
that is we are basically checking all the cycles that go through every vertices
in this graph
so we could calculate what is the best option
are you sure there is no easyier way
cus like we are ment to us the even and odd method
and jsut krusklas algothrim
that what we where told
ya that seems like a mroe comp sci method
but like we are told we need to. use krusklas algothrim
and then try and make the mst traversabel
your mehtod probally works better but we gotta do it that way unforgenally
still
do that first
so you at least have a value to check
but do you knwo how do it the way i ment to do it.
then you and i could think of how could me make it so that we can use the other way to do it
and do a sanity check
basically
like for a network to be traversble it need to have 2 or 0 odd nodes
i know
can I have all ndoe in my path as even. or do i need i and o to be odd. to start and finsh
this is jsut pratice i have a test tommrow with similler question
and have to do it that way
very similler question i am told
can I have all ndoe in my path as even. or do i need i and o to be odd.
all nodes to be even and of degree 2
it is a first step
so that you could at least eliminate the other cases that you just dont care
plus it is simpler to it in steps
ill try your way soon but how do i ahve to do the i am told to do
that is for later, just get your hand into the problem first
bruh
you are my only hope
iahah no stress
a test in a hour?
yup
bruh
i have to do the a question liek this very similler
and have to use krustkals algorthim
and then like try to make the mst i get traversbale
by adding paths from the orignal graph
@dull moth where are you at
ya np
i found it bro https://www.youtube.com/watch?v=UCUh5D7W6_s
Setting up for the Christofides-Serdyuov Algorithm for solving the TSP.
For more math, subscribe to my channel: https://www.youtube.com/jeffsuzuki1
so you telling me you cant use any other method?
then just
krustkals algorthim but modified
okay
whatever your math teacher be doing
i cant help with that ngl
yup
sorry dwag, gl on what ever exam you got
na dont worry bro you gave me hope
yo @dull moth