I am trying to complete this assignment . However i keep getting the below error. I fixed it multiple times but still the same error pops up
.There was a problem compiling the code from your notebook, please check that you saved before submitting. Details:
unindent does not match any outer indentation level (, line 151)
Assignment - Implementing graph algorithms with LLMs
For which function does the grader give this error? Did you check the indentation for that function? Also its a good practice to ask the LLM about errors too and feed the relevant code, its part of the collaboration process with the LLM!
This is for all the 4 functions . I tried prompted the LLM and entered in the code . It still gave me the same error. I will try one more time though
Again maybe better to get clean copies of the notebooks with “Get Latest Version”
I got 75 for my first submission, but got 0 for my second submission.
Did you try to get a new copy of the notebook?
Thank you for the recommendations. I created the new copy three times and it finally worked. I now received 75% . I noticed that since i was editing in the same copy over and over again it threw the indent error though my code was correct. I am a non programmer and I am glad i passed this assignment.
To get a new copy, you have to delete or rename your original file.
The “Get latest version” tool only replaces missing files - it won’t update an existing file.
I’m working on a Graph Algorithms with LLMs assignment, and while all unit test cases pass successfully for all four scenarios, my submission still isn’t validating—it remains at 0% Grading value.
I made some modifications to the default code, such as adjusting the path reconstruction and return values, to get success. but the issue persists. Has anyone faced a similar situation with the latest version? Any insights on resolving this?
Thanks in advance!
Whats the grader’s feedback?
I would advice you to reset the assignment again and do not change the returns of the functions, or the functions definition (if thats what you mean). You should only fill in the parts inside the functions.
thanks for the response @gent.spah. Finally, I found the problem and applied the solution to get the grade! There were two key issues:
Version Mismatch: The latest version was 2, but I was working on version 1. Even though I started the lab a few days ago, the grading system updated to version 2, causing a mismatch with my submission.
Solution: I retrieved version 2, identified the changes, and updated my code accordingly.
Time Limit Exceeded for test_tsp_small_graph and test_tsp_medium_graph:
Error: “Failed test case: Exceeded time execution limit for a tour starting in node 0.”
Solution:
Implemented Held-Karp with optimized memoization for tsp_small_graph (Runs in <1s)
Used Greedy + 2-opt heuristic for tsp_medium_graph (Runs in <1.5s)
Leveraged LLM support to refine and optimize the approach
Now, all test cases pass successfully
Please someone help me guide me to complete the assessment.
I recommend pair coding with an LLM while learning for a more interactive and efficient experience @loganth
Wonderful!
Listen to what he did thats the path forward.
Hi,
I am also from Encora… and need your help to complete the Programming Assignment: Implementing algorithms in Graphs.
I dont understand how to complete this assignment. Please could you help
Use the LLM offered in the course to ask it technical and non-technical questions. The LLM can also write code for you to implement solutions to problems, and you are actually supposed to do that to solve the exercises.
Checking this post late . Hope you are done this. if not we can connect. thanks