#๐Ÿ”’ Can I force algorithm on this project????

39 messages ยท Page 1 of 1 (latest)

stray cypress
meager robinBOT
#

@stray cypress

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

stray cypress
#

I can probably point out the stuff on the front end....

sweet dome
# stray cypress

That seems like a pretty awful assignment. Like, "recursion" is something you can literally use EVERYWHERE. In fact, some languages like Haskell don't even have regular loops but fully rely on recursion instead

#

but I guess it matters what they define as an "algorithm"

stray cypress
#

tbh I feel that prof have no idea what algorithm is for...

regal forge
stray cypress
#

Everything is a single function call and no complex process

meager robinBOT
#

Msystem/DB.py line 120

students = [{"id": str(r[0]), "name": r[1]} for r in student_rows]```
sweet dome
#

Hehe :P

regal forge
sweet dome
#

Yeah, obviously. I was more joking there

regal forge
stray cypress
#

With line selector??.

sweet dome
regal forge
sweet dome
#

(Then copy the URL)

stray cypress
#

#L<whateverline>

regal forge
#

ty ty

sweet dome
#

If you want to select multiple lines: Select the first line regularly, then shift-click on the final line of your selection

stray cypress
#

@sweet dome should I just create a unused recursive function and call it a day ๐Ÿ‘€

sweet dome
stray cypress
#

He wouldn't understand the code anyways

stray cypress
#

The task was like

Shove algorithm on your project and make a video you explaining it

sweet dome
#

My thoughts always shift to some pathfinding algorithms when I hear "greedy" and "backtracking".

stray cypress
#

same but the original project was about webdev and mini capstone

analog peak
#

What about a timetable layout function?
Students enroll in various classes. The classes have so many lectures per week. Arrange the lecture times so that all students can attend all their lectures.

Ignoring "no lectures happen at the same time", this becomes a "search for a working combination" problem, suited to a path walk and various approaches, maybe particularly backtracking: place second subject's lectures, oh they're conflicting, try again.

#

web front end to enroll students and display timetables

stray cypress
#

No time to implement that ._.

#

I still suck at frontend

analog peak
#

skip the front end, i though there was meant to be one

meager robinBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.