r/AskComputerScience • • 3d ago

ELI5: If AI is non-deterministic, how is it able to solve complex math proofs?

32 Upvotes

Admittedly, I'm not sure if I'm even phrasing the question correctly, apologies if I am not. But I hope it makes enough sense...?

Thank you!

Edit: By AI, i meant LLM. Apologies, y'all are really smart. LOL! Just came here to learn.


r/AskComputerScience • • Sep 02 '26

How does a computer know between the number 65 and the letter H?

32 Upvotes

I'm watching CS50, and about halfway through week 0, doctor malen mentioned how 65 bits of data equals the letter H and i'm curious to that if 65 equal H, how does the company know the difference between H and just the number 65?


r/AskComputerScience • • Feb 22 '23

Grokking Algorithms vs The Algorithm Design Manuel vs A Common-Sense Guide to Data Structures and Algorithms

32 Upvotes

TLDR: Which book do you recommend for beginners: Grokking Algorithms, The Algorithm Design Manuel, or A Common-Sense Guide to Data Structures and Algorithms?

I'm currently learning HTML, CSS, and JS (primarily through TOP) and plan on enrolling in a boot camp in a couple of months (I have three months before the program starts). I heard that learning algorithm is important and will help you become a better developer and help you during the job search. The boot camp doesn't focus on teaching this, so I want to learn it on my own.

I'm leaning towards reading The Algorithm Design Manuel while going over the author's lectures. However, I've recently read wonderful reviews about Grokking Algorithms, and I saw an older post on this sub where people raved about A Common-Sense Guide to Data Structures and Algorithms by Jay Wengrow.

During/after the boot camp, I wanted to go over Cracking the Coding Interview (it's my understanding that this book goes over algorithm problems).

Which of the three books would you suggest for an absolute beginner just getting their toes wet in the CS/programming world?

Edit: Thanks all!


r/AskComputerScience • • Dec 18 '22

What book should every computer scientist read?

32 Upvotes

Are there any books that is like a classic for computer science?


r/AskComputerScience • • Apr 29 '22

Why am I learning so many sorting algorithms?

32 Upvotes

What exactly is the reasoning behind learning more than one sorting algorithm, is it to teach concepts about how sorting algorithms work to better understand how to think?

Because I can imagine that learning one really fast algorithm would be a good way too, is there something im missing?

Thanks


r/AskComputerScience • • Apr 20 '21

Does a computer take the same amount of time to divide 1024 by 2 as it would to divide 256 by 4?

32 Upvotes

I am trying to understand how the splitting part of merge sort runs in O(log2(n)) time as it has to go through hundreds of divisions in later lines. Surely 1024/2 will complete a lot faster than 2/2, 512 times would, right?

Thanks!


r/AskComputerScience • • Jan 08 '21

What are other career paths I can seek aside from being a programmer / soft eng?

32 Upvotes

Hi guys! So I'm in my second last year of my comp sci degree at an Australian university. Ive enjoyed the degree and problem solving but I just don't see myself sitting writimg code all day. I was wondering what other options I have in terms of careers. I have good communication and people skills so I guess consulting is an option. But what else?


r/AskComputerScience • • Nov 21 '20

Is This Normal In Computer Science Education?

32 Upvotes

I'm studying programming courses and it seems like no matter how hard I study or how much I practice, I can never get good enough for the exams. I started earlier this year and it started off good. I was able to cope. But I've been really struggling with the next few courses in sequence.

Just to give you an idea: I have been spending the past 5 months doing practice coding problems every day. I do as many as I can. Along with all my assignments. I spend hours at it.

I'm able to manage the assignments because there's no time limit so there's room for trial and error and improvisation. But the exams are just brutal. They expect you to solve these problems under a very short time limit. In theory, I know how to do it but I just can't understand how they can expect us to do it in the time given. There's so much planning and thinking to do to figurer out how your program is going to work. The way its set up is that, you have to get everything right in the first go otherwise you miss your chance. Like there's no room for '' hmm what if I do do this ''. It's like they expect you to already know the code you want to type and instantly solve the problem from the moment you look at it.

I have never experienced anything like this in any other subject. I took IB math in high school and got 75% just by giving a half a**sed attempt. And I've done other courses in college, and haven't experienced anything like this. Every subject I've studied was set up in a way that ensured that if a student studies the content and puts in an honest amount of effort, they would succeed.

But what I'm studying right now doesn't feel anything like that. It's almost like the teachers are trying their level best to ensure students fail. It's almost like this is a mental eugenics program that is trying to weed everyone out who isn't exceptionally intelligent with razor fast cognitive and logic skills.

But why is it set up that way in education? Shouldn't that mental eugenics type thing only be reserved for prestigious positions like jobs at Apple? Where they only want exceptionally gifted programmers depending on what their values are?

Is this a common thing in computer science education? Is it just my college or are all colleges like this? I'm able to grasp all the concepts that are taught in class, but the rate at which I solve problems is not razor fast like they want. I feel helpless. Like no matter how much I study and practice, its never good enough.


r/AskComputerScience • • Sep 15 '20

Can you create an operating system which will support executable types of multiple kernel of operating system?

32 Upvotes

Is it possible even in theory to create an operating system which will support executables from different operating systems such as Windows, Ubuntu , MacOS ? If no what are the obstacles and challenges ?


r/AskComputerScience • • Aug 25 '20

Applying Benfords law to images.

32 Upvotes

I read an article about Benfords law, which suggested that you were able to detect fraudulent or edited images by analyzing an image and applying Benfords law. If the values were consistent with the pattern suggested by Benford, it would seem to imply that the image was not tampered with.

This sounds great on theory and seems fairly straight forward to test - so as an aspiring software engineer, I promptly took a couple of images on my phone, created a dataset where some had been tampered with using photoshop, and built a piece of software that goes through every image in a folder and builds a distribution of rgb values for each image, using the first number in each number as the key, and the value as an increment.

However! As I was writing the code I realized that the rgb value only goes to 255. That severely limits the randomness. So I found a way to compute a single unique value from r, g and b values! But then again, this is still limited.

I’m wondering - how is this done in the real world? I’m finding it hard to find a straight answer on how to compute a meaningful distribution for an image.


r/AskComputerScience • • Aug 12 '20

How does Python's sort() function work?

32 Upvotes

For more clarity, I mean does it work like a merge sort, quick sort, or some other method?


r/AskComputerScience • • Aug 11 '20

Whats a computer science skill I can learn in a month or two?

32 Upvotes

I have a about a month off from college and I want to do something with my free time other than playing video games. I looked up game development and Android app development but I think these two have a really steep learning curve that require more than the time I have. Can anyone suggest what should I start that I can get a grip on in about 2 months?

Note: Ive completed 4 semesters of my CS degree.


r/AskComputerScience • • Jun 15 '20

What is the process of coding a website from scratch?

32 Upvotes

I am a rising senior in computer science and I am trying to build a website to help my parents and build my resume. They use trip advisor to rent out one of their properties, and wanted to stop paying so much every year to keep it on there. Can someone please explain what the process is and give me a summary of what steps I need to take from writing the html code to actually launching the website. I do not have much experience with creating websites, so any information helps. Thanks!


r/AskComputerScience • • Apr 01 '20

Good (preferably free) resources to learn and practice algorithms?

32 Upvotes

Hello everyone,
I am relatively new to the programming field, specifically web development, so this might not be the best place to ask but I would love to hear your feedback anyways in regards to this question.

I am having a lot of difficulty when it comes to solving problems with algorithms on HackerRank and Leetcode, and was wondering if you could reccommend any resources that could help me better my approach to solving them. When I look at the solutions to some algorithms, such as flood fill, I understand how they work but I wouldn't be able to come up with that myself.

I'm trying to break into the web development field and only work per diem at the moment, so I am looking for either free or relatively inexpensive resources to learn more about algorithms and hopefully be less frustrating when it comes to solving problems with them. I'm not opposed to books, either! I'm going to post this on a webdev subreddit as well, but I hope to hear what you guys have to say or any advice you can give!

Thanks, stay healthy!


r/AskComputerScience • • Feb 05 '20

Struggling with Calculus in Computer Science major

32 Upvotes

So I'm currently a freshman in Calculus II and struggling pretty bad. I passed both PreCal and Cal I with a D. Math just doesn't seem to click for me. It's very difficult for me to learn math concepts, and it reflects on my GPA, which I might lose my scholarship this semester if I do poorly in calculus. All of my other classes I do great in, especially my programming courses, I'm probably in the top 3 in my class. I just don't jive with all this math. I know I'm not stupid, I'm a fairly smart dude lol. I guess my brain just doesn't work that way.

Anyways, do you guys have any tips or advice? Anything is appreciated. Thanks.


r/AskComputerScience • • Dec 14 '19

How to improve coding skills while working as a backend developer

32 Upvotes

Generally, in my 1-year job experience, it's just the same thing I’m doing again and again or modifying others' code. I do realize that my coding skill hasn't improved and I don't know so many techniques or skillful things I should know after doing a job for 1 year as a backend developer. So, how can I improve my coding and problem-solving skill which is very required in developing?


r/AskComputerScience • • Dec 06 '19

My university gave me an Azure account and £100 credits for it, what can I do with it and what’s the best that I can use it for while I have it?

32 Upvotes

I’m not entirely certain what azure is used for, so example use cases are best. And yes I have been to the website and it does give vague examples but I don’t understand how the thing works in reality so example projects and how it uses azure would be most helpful.


r/AskComputerScience • • Jun 27 '19

Is it worth it reading "old" computer science-related books?

32 Upvotes

Maybe some types of topics (eg. digital logic) are pretty much ageless but what about topics related to information security, artificial intelligence etc? I get the impression that knowledge in this field is always progressing and changing so quickly that reading a book from 10 years ago or something would only present outdated (and useless?) information.

Does it ever matter? And if so, when should/shouldn't it matter?

Ps. I'm still pretty new to this field so apologies if this is a noob question.


r/AskComputerScience • • Feb 13 '19

tips for a young and early proggrammer

32 Upvotes

Hey im still in high school and i just started to program and I lovvvvveeee it. I started and couldnt stop i know where im learning is the best or most optimized place but its free and i like it and that is what matters. what are some tips i should know early on like important things to learn general advice and maybe what you wish you knew when you started thank you for anyone that helps i am also considering a degree in computer science the more i read the more i get interested.


r/AskComputerScience • • Jan 24 '19

I'm a little confused about the use case for Docker/Containerization in general

32 Upvotes

I am attempting to learn about containerization, but there is something I am missing between the concept itself and the use-case of the user, and I am unsure what that step is, so I'm hoping that it is buried in the answer to these questions I've thought of!

Here is what I'm still confused about containerization so far, and I'd love to have clarified:

  • Is containerization just an easy way to have version control for an application?

  • Containerization is a virtualization of a computer's OS, and the docker engine sits straight on the computer's OS, which means that all of the microservices it uses are actually abstract versions of the computer's version of such a service. Does this mean that Windows 10/macOS/Linux/etc. all require separate versions of Docker as they have different kernel/OS APIs? (or is it something else? please correct me)

  • I am a little confused on who the end-user is for something like containerization. Is it mainly software for developers?

  • In this case, if the end-user wants to use an app that is created via containerization, do they need to have Docker installed to run this application?

  • One of the examples Docker has on its GitHub is a Flask app, which is (obviously) used in websites. Can a website use Docker in this way? How would the Docker engine interact with the browser in that case?


r/AskComputerScience • • Nov 02 '18

What do x86 chips still do better than Arm?

32 Upvotes

Apple’s new iPad Pro beats MacBook Pros on benchmarks, and Apple is rumored to be working on an Arm based Mac line. Obviously backwards compatibility is hugely important and is a reason to keep using x86 chips. But at what computing tasks do x86 chips still perform better than Arm?


r/AskComputerScience • • Dec 01 '16

What is the most impressive piece of software that exists today?

32 Upvotes

What is the most impressive piece of software that exists today?


r/AskComputerScience • • Apr 09 '16

What would take longer: copying 1024 1MB files, or 1 1GB file?

32 Upvotes

If one of those takes longer than the other, why?


r/AskComputerScience • • Oct 23 '26

How do I reach the level of knowledge, where I can point to any part of my screen and say "Oh, I know how that's implemented"?

31 Upvotes

I know programming, obviously, however I don't know much about the operating system. Most people can make apps within an environment, but most of us don't know anything beyond that

I want to deeply understand how the computer I'm using works, even just the software part

If you go on a virtual tour of your computer, like browsing the file system, or even looking at the plain old desktop, there's so many endless things in front of you, that most people have no idea how to make

How do I make a Windows desktop app? Why does it run on Windows? Same for MacOS

How do tab sizes work?

What is the desktop "screen" and why can I click and drag my mouse to highlight the icons? Where are those icons stored?

I can code a website, but I don't know a clue about how the browser works

How do I make a file system? I mean, isn't it just a large data structure, and I know data structures, so I'm sure I can learn it

Why does my task bar pop up when I drag my mouse all the way to the bottom of the screen?

What does it mean to turn on a computer?

Why / how does my physical mouse control my cursor? Is there a way I can "hack" my mouse? How do I code the firmware in my mouse?

How does the OS accept and eject USBs?

How do you allow your OS to connect to wifi?

What really is a .txt, .pdf, .rar .zip? Why can some OS's open them, some cannot?

Stuff like that

Can most of you point to any part of the screen and know how it works?