r/computerscience • u/[deleted] • May 16 '20
r/computerscience • u/[deleted] • Feb 20 '21
General Perceptron Neural Network Visualized Interpreting Drawn Numbers
r/computerscience • u/[deleted] • Jan 27 '24
How tf do computers generate random numbers?
Hi guys, Iâve been using random number generators lately and I canât seem to figure out how a computer can generate a random number. Donât they just do what theyâre told? Please explain like im stupid Edit: holy moly this is blowing up
r/computerscience • u/pastroc • Sep 19 '21
Discussion Many confuse "Computer Science" with "coding"
I hear lots of people think that Computer Science contains the field of, say, web development. I believe everything related to scripting, HTML, industry-related coding practices etcetera should have their own term, independent from "Computer Science."
Computer Science, by default, is the mathematical study of computation. The tools used in the industry derive from it.
To me, industry-related coding labeled as 'Computer Science' is like, say, labeling nursing as 'medicine.'
What do you think? I may be wrong in the real meaning "Computer Science" bears. Let me know your thoughts!
r/computerscience • u/exp1oratrice6 • Jun 23 '19
Happy Birthday (and Pride Month) Alan Turing, Father of Theoretical CS & AI
r/computerscience • u/DeepakSuryaS • May 30 '19
Cornell's entire Machine Learning class (CS 4780) is now entirely on You Tube. Taught by one of the funniest and best professors from UCornell
r/computerscience • u/Ties_P • Jan 07 '26
I got paid minimum wage to solve an impossible problem (and accidentally learned why most algorithms make life worse)
I was sweeping floors at a supermarket and decided to over-engineer it.
Instead of just⌠sweeping⌠I turned the supermarket into a grid graph and wrote a C++ optimizer using simulated annealing to find the âoptimalâ sweeping path.
It worked perfectly.
It also produced a path that no human could ever walk without losing their sanity. Way too many turns. Look at this:

Turns out optimizing for distance gives you a solution thatâs technically correct and practically useless.
Adding a penalty each time it made a sharp turn made it actually walkable:

But, this led me down a rabbit hole about how many systems optimize the wrong thing (social media, recommender systems, even LLMs).
If you like algorithms, overthinking, or watching optimization go wrong, you might enjoy this little experiment. More visualizations and gifs included! Check comments.
r/computerscience • u/miaumee • Jan 06 '20
Classy, intricately-constructed spiral made of right triangles
r/computerscience • u/unixbhaskar • Dec 06 '19
Gooooooooooooooooooo! get it, fellas! it's out !!!!
r/computerscience • u/synapsetutor • Feb 28 '24
Type 1 vs type 2 engineers
Do you guys buy this argument of type 1 vs type 2 engineers?
r/computerscience • u/schleemplumbus • Feb 29 '20
General I found this pretty interesting
r/computerscience • u/ChickenFeline0 • May 24 '25
General One CS class, and now I'm addicted
I have taken a single college course on C++, and this is what it has brought me to. I saw a post about the birthday problem (if you don't know, it's a quick Google), and thought, "I bet I can write a program to test this with a pretty large sample size". Now here I am 1.5 hours later, with a program that tests the birthday problem with a range of group sizes from 1 to 100. It turns out it's true, at 23 people, there is a 50% chance of a shared birthday.
r/computerscience • u/Camjw1123 • Jun 29 '21
General Built a tool to generate resumes using GPT-3!
r/computerscience • u/Ehsan1238 • Feb 06 '25
Discussion I dedicated three years to work on Travelling Salesman Problem.
I dedicated three years, starting at the age of 16, to tackling the Travelling Salesman Problem (TSP), specifically the symmetric non-Euclidean variant. My goal was to develop a novel approach to finding the shortest path with 100% accuracy in polynomial time, effectively proving NP=P. Along the way, I uncovered fascinating patterns and properties, making the journey a profoundly rewarding experience.
Manually analyzing thousands of matrices on paper to observe recurring patterns, I eventually devised an algorithm capable of eliminating 98% of the values in the distance matrix, values guaranteed to never be part of the shortest path sequence with complete accuracy. Despite this breakthrough, the method remains insufficient for handling matrices with a large number of nodes.
One of my most significant realizations, however, is that the TSP transcends being merely a graph problem. At its core, it is fundamentally rooted in Number Theory, and any successful resolution proving NP=P will likely emerge from this perspective.
I was quite disappointed in not being able to find the ultimate algorithm, so I never published the findings I had, but it still remains one of the most beautiful problems I laid my eyes on.
Edit: I have some of the early papers of when I started here, I doubt it's understandable, most of my calculations were in my head so I didn't have to write properly: https://acrobat.adobe.com/id/urn:aaid:sc:us:c4b6aca7-cf9f-405e-acfc-36134357f2dd
Edit: I'm not trying to validate my findings on reddit, I was just discussing the general behaviour of TSP after observing thousands of matrices, I'm 20 now and have moved on from this problem and not working on it anymore.

r/computerscience • u/[deleted] • Mar 01 '18
I have an interview for a developer position on Wednesday and this just about sums up how I feel right now.
r/computerscience • u/t-bands • Sep 10 '22
Discussion Traveling Salesman Problem implementation on Google Mapsđ
r/computerscience • u/ProductionPlanner • Apr 06 '23
5 megabytes of computer data in 1966. 62,500 punched cards, taking 4 days to load
r/computerscience • u/ElectricKids_club • Feb 23 '22
Discussion 4bit RAM register for 8bit computer from /r/beneater/. First time building a computer from scratch with my 7 years old son. CS project
r/computerscience • u/kurtstir • Sep 13 '20