r/AskComputerScience • u/Many-Ad-3228 • Oct 23 '25
I am trying to understand how GPU's work.
Hi guys, I am trying to understand how GPU's work. Can you please recommend me some courses/articles/videos on this topic?
r/AskComputerScience • u/Many-Ad-3228 • Oct 23 '25
Hi guys, I am trying to understand how GPU's work. Can you please recommend me some courses/articles/videos on this topic?
r/AskComputerScience • u/Awkward-Carpenter101 • Oct 22 '25
Solving DSA (Data Structures and Algorithms) problems is my weakest skill, and I really want to improve. I’d appreciate some advice on how to best digest the material.
Specifically, should I stop and fully understand every detail before moving on, or is it better to grasp the general concept behind the explanation and revisit the details later?
For a concrete example: I’m reading the first chapter of a book that explicitly says, “Stop and think—try to come up with a counterexample.” I came up with a counterexample of size 5 that seemed to work, but then the book presented a solution showing that the minimum size is actually 7. I didn’t understand the graph or where my reasoning went wrong—why isn’t a size-5 counterexample sufficient?
I think I get the general idea: For this particular case, a greedy criterion is proposed, and we need to test whether it can lead to suboptimal solutions. Therefore, a counterexample is required—and in this case, it involves looking at extreme cases.
Given that this is just an introductory section, I’m considering moving forward and revisiting this more carefully when the book covers greedy algorithms in depth. But maybe someone with more experience could advise me: is deep, complete understanding required right now, or is it okay to proceed with a high-level grasp for now?
It’s a bit frustrating to follow the problem statement, attempt the task, and still not be able to complete it correctly.
r/AskComputerScience • u/Crazeye • Oct 21 '25
So, the problem is pretty basic sounding. But I've never thought of it before, and have been trying to solve it for a day now, and I'm not sure how to go about it.
The requirement is:
"Language over {a,b} where a's are even and b's are odd AND number of a's are greater than number of b's"
I know how to make grammars for even a's and odd b's, and num(a)>num(b) separately. But for the life of me I cannot figure out how to find their intersection. Is there something that can help me figure this out? Any online material that I can look at or any tools?
Another thought that has occurred to me is that CFG is not possible for this. But I'm not sure if I'm just thinking that simply because I can't figure it out, or it actually isn't.
Appreciate any help/guidance.
ETA: need to make a CFG. And I would think since b is odd, then the minimum times b can occur is 1. Which means a must occur 2 or more times but in multiples of 2. If b occurs thrice, then a must occur 4 or more times in multiples of 2. Issue is that a's can occur anywhere if we're considering the 'even' a's part of the question. So I can't figure out how to balance the a's around the b's
Edit#2: correction to above. I said if b occurs twice. However b can't occur twice.
r/AskComputerScience • u/RuthlessIdeas • Oct 18 '25
Instead, you unlock it by performing a sequence of actions—like visiting certain web pages in a specific order.
Then I thought: what if this idea applied to tests?
Imagine a digital test where your “key” is determined by how you move through it—
Basically, the pattern of your behavior becomes the passcode.
Has anything like this ever been made before (in testing platforms, gamified assessments, or cybersecurity challenges)? Or would this be a totally new concept?
r/AskComputerScience • u/Subreon • Oct 19 '25
The Matrix seems to be where the idea entered mass appeal, but where did they get it from? Then who before that? etc etc etc. The timeline of how, when, and where digital worlds and ai started is so strange, and hard to comprehend. Like, the Turing test was made in 1950!!! Talk of ai was started almost directly after the birth of jet fighters, and cars still had manual everything with seafoam and salmon pink paintjobs before groovy teens even started hanging out at the malt shop and solving mysteries. Though it started so early, computery stuff didn't really go anywhere until it suddenly started exploding with microsoft related stuff, like especially around windows 95. Then computing spread across the world like a wildfire. Then we got stuff like the Matrix, and then Code Lyoko. Before the Matrix. Games were being made in 3D, like Sonic Adventure on the Dreamcast. It's so, crazy. Like, where did it all come from all of a sudden. All this computer stuff was born around 1950 and laid dormant until seemingly Bill God himself blessed the digital realm with a simple system that could be easily widespread. But what was all that space before him? That mysterious null void where computing was seen as just some obscure military tool and nothing more for almost 50 years. Then boom. directly after MS happened, stuff like the Matrix, the ai movie, terminator, code lyoko, etc etc etc started popping up left and right all over the place. Like, Bill didn't introduce that concept. He just made the framework, then not even a few years later, people in hollywood were conceptualizing where computing could potentially run off the rails at its peak. Like, nobody was talking about this stuff in the world. Yet somehow, multiple movie makers where ALL over this concept almost immediately after 3D movie making software like with Toy Story was made.
Just... in short. How were there so many movie makers thinking about all this ultra advanced computer stuff with rogue ai and digital worlds when home computers just had, freakin, a start menu button and an internet explorer icon on their home screen? The EXTREME leap in logic there seems COMPLETELY out of sync. Makes me want to put on a tinfoil hat and start raving about how there must've been some kind of time travel, timeline alteration or secret government agents telling hollywood to slowly reveal to the public how far tech has actually gotten behind closed doors for all those silent 50 years so there was less of a culture shock or chance of a mass panic scenario.
r/AskComputerScience • • Oct 19 '25
Please state the following (you don't have to be a programmer):
Have a good day!
r/AskComputerScience • u/Ok_Television_6821 • Oct 17 '25
I’m essentially asking is there any formalism that describes intelligence as a thermodynamic-information process or mechanism? If so is matter included in that?
r/AskComputerScience • u/gawrgurahololive • Oct 16 '25
How "plug and play" work in-depth? I read an article on this on Wikipedia but i find it pretty confusing. I would be very grateful if someone here explain how plug and play work in details
r/AskComputerScience • u/TrainingAccident4463 • Oct 15 '25
I recently came across a copy of - Computer Architecture and Parallel Processing by Kai Hwang and Fayé Briggs.
I am planning on reading it as a hobby (not for any university course as such).
It mentions that it is a 1985 edition and I am unable to find any recent editions online, which makes me wonder if this book is still relevant for a modern understanding of the field.
It mentions that it uses Fortran for explaining vector processing and array processors and concurrent Pascal for multiprocessor illustrations.
Any insights would be appreciated!
r/AskComputerScience • u/thekeyofPhysCrowSta • Oct 14 '25
For example, a function that reads an external file is not pure, but if the file contents is constant, we can pretend it's pure. Or, a function that modifies an external lookup table has a side effect and is not pure, but if the lookup table is only used to cache the results of that function, then it behaves as if it's pure.
r/AskComputerScience • u/Youreka_Canada • Oct 14 '25
Hi sub, we run a 10 weeks bioinformatics program for about 500 highschool and college students. As expected the hardest part of the program is learning how to use R and Python. I was wondering how should we structure the program to make sure that our participant are able to do data analysis of large open dataset ? Any help will be welcomed !
r/AskComputerScience • u/therealjoemontana • Oct 12 '25
I recently saw Cambridge is offering a free service called copy that floppy for archiving old floppies data from going extinct.
It got me thinking are there any old viruses from the days of DOS, windows 3.1, 95, 98, ME that can still affect modern windows 11 computers and put them at risk in any way?
r/AskComputerScience • u/MatricksFN • Oct 13 '25
I understand how gradients are used to minimize error. However, during backpropagation, we first compute the total error and then define an error term for each output neuron. My question is: how does the backpropagation algorithm determine the target value for each neuron ? Especially for hidden layers given that the final output depends on multiple neurons, each passing their signals through different weights and biases?
How is that 1 neurons target value determined?
Hope this is the correct sub 🤞
r/AskComputerScience • u/muskangulati_14 • Oct 13 '25
The main context of posting this is to gather few technical inputs or insights from you as a CS professional/student.
Not looking for “just use OpenAI API”. I’m curious on how you’d think about the architecture and pipelines if you were on a small founding team solving this.
r/AskComputerScience • u/akkik1 • Oct 13 '25
https://github.com/akkik04/HFTurbo
My attempt at a complete high-frequency trading (HFT) pipeline, from synthetic tick generation to order execution and trade publishing. It’s designed to demonstrate how networking, clock synchronization, and hardware limits affect end-to-end latency in distributed systems.
Built using C++, Go, and Python, all services communicate via ZeroMQ using PUB/SUB and PUSH/PULL patterns. The stack is fully containerized with Docker Compose and can scale under K8s. No specialized hardware was used in this demo (e.g., FPGAs, RDMA NICs, etc.), the idea was to explore what I could achieve with commodity hardware and software optimizations.
Looking for any improvements y'all might suggest!
r/AskComputerScience • u/AmbitionHoliday3139 • Oct 12 '25
I want to learn system design and I have few questions.
r/AskComputerScience • u/Top-Tip-128 • Oct 12 '25
Hi! I’m working on an algorithms assignment (range maximum on a static array) and I’m stuck on the exact method/indexing.
Task (as I understand it)
a[1..n].a where each internal node stores the max of its two children.h is the index of the first leaf, so leaves occupy [h .. 2h-1]. (Pad with sentinels if n isn’t a power of two.)maxInInterval(a, left, right) that returns the index in a of the maximum element on the inclusive interval [left, right].My understanding / attempt
i = h + left - 1, j = h + right - 1.i <= j, if i is a right child, consider node i and move i++; if j is a left child, consider node j and move j--; then climb: i //= 2, j //= 2. Track the best max and its original array index.O(log n).What I’m unsure about
[h..2h-1]?a, what’s the standard way to preserve it while climbing? Store (maxValue, argmaxIndex) in every node?[left, right] both inclusive? (The spec says “interval” but doesn’t spell it out.)left == right, left=1, right=n, and non-power-of-two n (padding strategy).O(log n) disjoint nodes that exactly cover [left, right]?Tiny example Suppose a = [3, 1, 4, 2, 9, 5, 6, 0], so n=8 and we can take h=8. Leaves are t[8..15] = a[1..8]. For left=3, right=6 the answer should be index 5 (value 9).
If anyone can confirm/correct this approach (or share concise pseudocode that matches the “leaves start at h” convention), I’d really appreciate it. Also happy to hear about cleaner ways to carry the original index up the tree. Thanks!
r/AskComputerScience • u/Izumi994 • Oct 10 '25
I don't have to seriously study OS yet so I'd like to dabble in it for a bit since I am interested in the idea of it, so I'm looking for any podcast recommendations which teach OS theory stuff or any yt playlist in which the videos aren't too long.
P.S if you have similar recommendations for comp arch that'd be nice too.
r/AskComputerScience • u/just-a_tech • Oct 08 '25
I’ve been thinking a lot lately about how the early generations of programmers—especially from the 1980s and 1990s—built so many foundational systems that we still depend on today. Operating systems, protocols, programming languages, databases—much of it originated or matured during that era.
What's crazy is that these developers had limited computing power, no Stack Overflow, no VSCode, no GitHub Copilot... and yet, they built Unix, TCP/IP, C, early Linux, compilers, text editors, early web browsers, and more. Even now, we study their work to understand how things actually function under the hood.
So my questions are:
What did they actually learn back then that made them capable of such deep work?
Was it just "computer science basics" or something more?
Did having fewer abstractions make them better engineers because they had to understand everything from the metal up?
Is today's developer culture too reliant on tools and frameworks, while they built things from scratch?
I'm genuinely curious—did the limitations of the time force them to think differently, or are we missing something in how we approach learning today?
Would love to hear from people who were around back then or who study that era. What was the mindset like? How did you learn OS design, networking, or programming when the internet wasn’t full of tutorials?
Let’s talk about it.
r/AskComputerScience • u/RamblingScholar • Oct 08 '25
I've been reading about absolute and relative position encoding, as well as RoPE. All of these create a mask for the position that is added to the embedding as a whole. I looked in the Attention is all you need paper to see why this was chosen and didn't see anything. Is there a paper that explains why not to make one dimension just for position? In other words, if the embedding dimension is n, then add a dimension for position n+1 that encodes position (0, begining, 1 ending, .5 halfway through the sentence, etc). Is there something obvious I've missed? It seems the other would make the model training first notice there was "noise" (added position information) then create a filter to produce just the position information and a different filter to produce the signal.
r/AskComputerScience • u/gawrgurahololive • Oct 07 '25
What should I learn before reading Modern Operating Systems (4th Edition) by Andrew Tanenbaum and Herbert Bos? I find it pretty confusing, even though I have a little knowledge of operating systems. I’m just a 14-year-old student who wants to learn more about technology in my spare time.
r/AskComputerScience • u/FormalLie0 • Oct 06 '25
I'm a student at university, and we were assigned to draw a diagram for a Turing machine that reverses signed 9-ary integers. I have no idea how to do this, please help.
r/AskComputerScience • • Oct 03 '25
My case:
You use your face, or voice, to unlock something? With how media driven our society is you can get that, often very easily, with a google search. And all it might take is a high quality picture to fake your face for username, or some random phone call with a recording to get your voice totally innocuously. And that's for total strangers. Someone who knows you and wants to mess with you? Crazy easy. Fingerprints? It's a better key than like a physical key because it's got a lot of ridges to replicate. But easy to get your hands on if you're motivated to and know a person.
All of that leads into password managers. All that stuff may also just be in some database that will eventually leak and your print will be there to replicate even at a distance. Or face. Or voice. AI being AI it won't even be hard. But a password manager is that database. If it's on your device nabbing that and decrypting it will be the game. If it's online? It'll be in a leak eventually.
So... I'm not saying none of these things provide some security. And I'm definitely on board with multi factor mixing and matching things in order to make it more difficult to get into stuff. But conventional advice from companies is "Improve your security by using a fingerprint unlock" or "improve your security with face unlock" or "improve your security by storing all your data with us instead of not doing that!" And that's 1 factor. And it just seems kinda....
dumb.
r/AskComputerScience • u/PotatyMan • Oct 02 '25
Hey guys Im a fairly new c and c++ dev, with c++ as the first language I really learnt and even then im still very much a beginner. Now as you can probably tell im interested in low level programming and computer knowledge, stuff like web dev really never excited me. I follow a youtuber Coding Jesus who I think is phenomenal if you don't know him check it out. Anyway he recommended What Every Programmer Should Know About Memory as a must read. However I did see that it is from 2007. Now if I know anything about the tech industry is that it evolves quickly, and I'm just curious to know if its still worth a read despite it being nearly 2 decades old. Also is there any more modern texts like this one? Thanks a lot.