[-] שאלה3 סעיף ה
by lavidi - Tuesday, 23 June 2009 21:09:22
האם אני יכולה להניח שקיים קודקוד
S
כך שכל שאר הקודקודים נגישים ממנו?
[-] Re: שאלה3 סעיף ה
by arseny - Tuesday, 23 June 2009 21:33:13
שאלה נוספת על אותו סעיף,
עד כמה צריך לפרט את האלגוריתמים של בלמן פורד ודייקסטרא, או מספיק להשתמש בהם כקופסה שחורה?
Re: שאלה3 סעיף ה
by abuaffas - Tuesday, 23 June 2009 22:15:32
You can assume that s is accessible to all of the other vertices.
You don't need to rewrite any of them. You can use, for example, BellmanFord(G,w,s) to compute the shortest paths from s to all the vertices in G under the weight function w.