r/AskProgramming • u/reggieverse • Sep 18 '26
Career/Edu can i do a naive implementation of an algorithm in a bachelor's thesis?
very sorry if i applied the wrong flair.
im making a game for my thesis with an implementation of a pathfinding algorithm.
made the mistake of not researching enough about the actual implementation of the algorithm and also wanting to differentiate myself from everyone else in my uni. now i've ended up with a 1000+ line state-of-the-art algorithm that i dont have time to genuinely comb through, much less implement.
i absolutely understand the broad/general concept of the algorithm though. and since the original code is brutally optimized for competitions and benchmarkings, would it be okay to omit that aspect in my thesis and just implement that broad/general concept?
my thesis also mainly focuses on the game-making side of things as well as how users receive/accept the game, the pathfinding algorithm isn't the focus and im not doing any benchmarking as well as no comparisons to other algorithms.
thank you very much for any responses!
EDIT: very sorry, my post was a bit ambiguous. i DID NOT make the algorithm. it's an "official" algorithm with academic papers and all. i just read (maybe skimmed) the paper, watched a youtube vid made by the creator of the algorithm, and ran with it. any explanation on it was very surface level that i didn't know it was actually a 1000+ line algorithm i would be dealing with (the creators made a repo for it)...
24
u/icemage_999 Sep 18 '26
This sounds like "I wrote this with AI, will I get caught?"
How else do you handle writing a thousand lines of code that you suddenly "don't have time to genuinely comb through"?
9
u/dotcomGamingReddit Sep 18 '26
Thats exactly what you should ask your professor/assigned teaching assistant
2
u/_Atomfinger_ Sep 18 '26
How did you end up with this algorithm if you didn't implement it? And how do you end up with an algorithm that you haven't already gone through?
Is this just a generic algorithm you found online?
What is the alternative? Not having any algorithm? Not having a thesis?
The first thing is that you should ask your professor about the rules if you're unsure. That is a given.
but also, you don't really provide any alternatives. If you can genuinely implement it properly, then that might differentiate you... which is one of your goals. If you don't, then you risk differentiating yourself in a different way.
If the alternative is that you won't have a thesis, then I guess the question answers itself.
1
u/snaphat Sep 18 '26
Is the pathfinding algorithm your algorithm?Ā If so I'm confused how you would Ā not understand it?
How is a pathfinding algorithm 1000+ lines? That sounds like a specific implementation of an algorithm not a general purpose algorithm itself?
I'm going to assume it's JPS+ you are talking about specifically which is niche in terms of use cases and if you mean that specifically you really can't discard most things without it not being JPS+. Algorithmically it's an optimized form of A* and you could just do a standard implementation of that instead but then you can't call it JPS+
1
u/mc_pm Sep 18 '26
So... could you just tell us what algorithm it is so we don't have to guess?
1
u/4xe1 Sep 19 '26
Is path finding such a core component of your game that you need such a beast of an algorithm?
If no, you probably should never have dived so deep in the first place, do whatever minimal pathfinding works.
If yes, then you scoped your game too big, given you "don't have time" to actually implement it, and your thesis focuses on the whole game. Again, do whatever minimal pathfinding works. Once you finished the game, you can go back to it and implement the "naive version" of that algorithm if you want. Irrespective of your thesis, you don't need all the optimizations, and you should not implement them all.
1
u/Educational-Paper-75 Sep 19 '26
No need to put the code itself in the (paper) thesis if it's a well-known algorithm like A*.
1
u/ConsciousBath5203 Sep 19 '26
1000+ lines basically copypasta'd from an established paper is like, maybe half a day of writing it yourself lol. But since they have a repo
mkdir -p contrib && cd contrib && git clone repo && cd repo && buildthen include the patching API in the game. Takes maybe 10 min.This is industry standard stuff.
1
u/nwbrown Sep 23 '26
Bachelor's thesises don't exactly have high requirements but no, but if you useĀ Dijkstra's algorithm just call itĀ Dijkstra's algorithm.
0
u/[deleted] Sep 18 '26
[removed] ā view removed comment