r/AskComputerScience • u/Clear_Anteater2075 • Feb 15 '26
Mobile app Languages
.NET MAUI or Flutter?! What are the uses , advantages and disadvantages of each?!
r/AskComputerScience • u/Clear_Anteater2075 • Feb 15 '26
.NET MAUI or Flutter?! What are the uses , advantages and disadvantages of each?!
r/AskComputerScience • u/NaiveTea95 • Feb 14 '26
Hey guys. I'm supplementing my DSA course at Uni with CLRS, and I'm a little confused about the following paragraph discussing the reasoning behind Insertion-Sort having an upper bound of O(n2):
"The running time is dominated by the inner loop. Because each of the (n - 1) iterations of the outer loop causes the inner loop to iterate at most (i - 1) times, and because i is at most n, the total number of iterations of the inner loop is at most (n - 1)(n - 1)." (this is page 52 of the 4th edition)
Here is the pseudocode:
Insertion-Sort(A, n)
for i = 2 to n
key = A[i]
j = i - 1
while j > 0 and A[j] > key
A[j + 1] = A[j]
j--
A[j + 1] = keyIt is true that the outer loop of the insertion sort pseudocode in CLRS runs (n - 1) times regardless of the problem instance, and that at most, the inner while loop executes (i - 1) times for each iteration.
However, I'm confused about why the author states that the inner while loop runs at most (n-1)(n-1) times. The inner while loop only has the opportunity to execute (n - 1) times when i assumes the value of n, which of course only occurs once during the last iteration, not every iteration.
Wouldn't the number of iterations of the inner while loop be determined by the summation 1 + 2 + 3 + ... + (n - 1) = n(n - 1) / 2 ?
In either case, the O(n2) upper bound is correct, but I need some clarity on the author's reasoning, as I don't seem to be following it.
r/AskComputerScience • u/Sriraj29 • Feb 13 '26
What is the difference between exercises and problems at the end of each chapter?
r/AskComputerScience • u/Quick-Fee-3508 • Feb 11 '26
So our college just started with the course of Theory of Computation and here's the question that I'm confused about:
Q) Find regular expression for the language of all string that starts with aab over alphabet Σ = {a,b}. My answer was (aab)* (a|b)*
Now I do know that the expression (aab)* also includes null string but what if we assume it doesn't include the Null String then an answer like aabaab can also be valid
Considering string "aabaab" also starts with "aab"
r/AskComputerScience • u/Pale_Squash_4263 • Feb 11 '26
A random idea I had today that I couldn’t really find an answer for while Googling.
Is there a sorting algorithm that sorts elements by figuring out its percentile position within an array (maybe by taking the smallest and largest element or something)
Not sure if it would be fully sorted by this process, but you could run another sort on top of it but by then it should be a better case because it’s mostly sorted.
r/AskComputerScience • u/_gigalab_ • Feb 11 '26
My question is more vibe coding oriented if yk what I mean.
Edit: I'm talking about the values of certifications, are they more valued now that mostly anybody can play with AI?
r/AskComputerScience • • Feb 10 '26
I know that by the core ways computers work, they cannot multitask, yet Windows or Linux distros can run multiple different tasks, the kernel and usermode, drivers, etc? How can it do so without 1 cpu for each task?
r/AskComputerScience • • Feb 10 '26
hi there
I'm looking for an alternative to this book because it lacks detail and its style is confusing (I've read the first 5 chapters).
thank you 🙏🏻
r/AskComputerScience • u/NewRadiator • Feb 10 '26
Do self-taught programmers with no formal education in computer science actually exist?
r/AskComputerScience • u/011011100101 • Feb 07 '26
I'm taking an introductory systems class with the Patt/Patel textbook. There is a question in the textbook that reads basically the same as the title. I will copy paste the full question below for reference. To be clear, I'm not asking for homework help. I just wanted to discuss this question since it seems a little cheesy (I'm not sure where else I can). Here is the full question:
How does the word length of a computer affect what the computer is able to compute? That is, is it a valid argument to say that a computer with a larger word size can process more information and therefore is capable of computing more than a computer with a smaller word size?
Isn't it trivially true that a computer with a larger word size can "process more information"? Surprisingly, the answers you find online are negative: a computer with a smaller word size is able to compute just as a much as a computer with a larger word size. I can understand the theoretical argument that it may be possible to "chunk" up a task into smaller pieces so that a computer with a smaller word size can perform it. But surely there are limits to this. One specific counterargument I had was the following:
If the word size is related to the maximum addressable memory (as it is in the machine studied in this textbook), then computers with smaller word sizes cannot address as much data. And surely there are tasks which cannot be performed unless there is adequate memory.
Can anyone strengthen the "negative" argument?
r/AskComputerScience • u/potterhead2_0 • Feb 06 '26
I keep hearing people say that AI will create new jobs, just like how technological changes in the past did. A common example is electricity.Before electricity, there were people whose job was to light street lamps. When bulbs and electric systems came in, those jobs disappeared, but new jobs were created instead. I understand the analogy in theory, but I’m struggling to picture what the AI version of that actually looks like.
What are the real, concrete jobs that come out of this shift?
For people working in tech or related fields,do you genuinely see new roles emerging that can replace the ones being automated?
I’m curious how realistic this comparison really is, especially given how fast AI is advancing.
r/AskComputerScience • u/TwixGudPerson • Feb 06 '26
I need a way to verify if a piece of digital art is AI without using AI to verify it. This is because I want to mitigate concerns about user art being used to train AI and also keep AI art users away from my platform.
Any ideas on how to approach this?
r/AskComputerScience • u/Witherscorch • Feb 05 '26
First: While I am currently studying computer science, I would consider myself to only know the basics at this point, so I am speaking from a place of inexperience.
Things I thought about before making this post:
I wasn't there for most of the early history of computers, so working backwards is difficult. I'd appreciate any insights. Thank you
r/AskComputerScience • u/potterhead2_0 • Feb 04 '26
For those who are genuinely good at coding now, was there a specific realization, habit, or shift in thinking that made things click for you? Not talking about grinding endlessly, but that moment where code started making sense and patterns became obvious. Was it how you practiced, how you learned fundamentals, how you debugged, or how you thought about problems? I’m curious what separated I’m struggling from I get this now
r/AskComputerScience • u/curiousscribbler • Feb 05 '26
I read a little about Hamming codes and error correction. Would that be one way of keeping data from degrading over the long term? Are there other ways hardware or software can repair errors?
r/AskComputerScience • u/potterhead2_0 • Feb 05 '26
For those working in IT, software development, or other computer science roles: how do you see AI affecting your work in the coming years?
Are there specific areas or tasks that you think AI will not take over and will take over?
r/AskComputerScience • u/Yeagerisbest369 • Feb 03 '26
Just today i came across the term " Abstract Reasoning" which is the ability to think in abstract terms without having to learn the underlying Terms.
To give you the example : " throwing a rock at a window would brake the window" this is more abstract than " throwing a Hard and dense object like a rock towards a structurally fragile object like a window would result in the shattering of the fragile object and it would break apart afterwards" this is more literal in a sense.
I realized that while learning programming most of the language are abstract even low level language like C or C++ abstract many things in libraries.
i would say i am not able to think in abstract terms ,whenever I learn anything i want a clear working example which I would compare to real life things in personal life only then am I able to remotely absorb what it means. Even learning about headers and (use case of virtual function in c++) took me two days to make reach some conclusion. I have always been bad with Abstract Reasoning it seems.
What are your opinions , does computer science (and specifically software engineering) reward Abstract Reasoning ? Can I improve my ability ?
r/AskComputerScience • u/WonderOlymp2 • Feb 03 '26
Why does it take a very long time?
r/AskComputerScience • u/Witherscorch • Feb 02 '26
A question that never occurred to me before. I used to assume that it would just connect to the internet and then update it's time accordingly, but I recently took a laptop to a place without internet access and it showed me roughly the correct time.
Granted, the laptop wasn't powered off, it was simply suspended, but I still don't understand how that would keep track of time.
Does the cpu count the clock cycles? It seems like an awful lot of work to do, and also feels like a waste of resources. Besides, how does the cpu know the relation between clock cycles and time? Are those hardcoded?
r/AskComputerScience • u/Hopeful-Feed4344 • Feb 03 '26
Hey everyone,,
3rd year CS student from the Philippines here. Need a brutal reality check on my thesis feasibility.
The Problem: Filipino mango farmers lose 33% of harvest to postharvest defects (sap burns, bruises, rot). Current sorting is manual and inconsistent.
My Proposed Solution: A hybrid system:
Why Hybrid? Because YOLO alone can't assess severity well - it's great at "there's a bruise" but bad at "how bad is this bruise?"
The Question: Is this hybrid approach academic suicide for undergrads?
Specifically:
Our seniors did: YOLOv8 for pest detection (single model, binary classification). We're trying to level up to multi-model, multi-class with severity.
Honest opinions: Are we overreaching? Should we simplify to survive, or is this actually doable with 12 months or more of grind?
r/AskComputerScience • u/thelastvbuck • Feb 03 '26
I still have to set blanket ban time limits for websites like YouTube or Reddit. Is there a reason why there aren’t already AI systems that can differentiate between the two types of content? (e.g. computationally heavy task?)
Feels like a problem that should’ve been solved by 2026.
r/AskComputerScience • u/the_quivering_wenis • Jan 31 '26
Hello - I'm looking at studying swarm intelligence and complex systems a bit as a side project or potential precursor to a graduate program and am looking for text recommendations (I double-majored in philosophy and computer science). What really interests me in particular is how one might formalize the emergence of intelligent behavior or higher level patterns from building blocks that are defined simply (whatever that means exactly) and locally. Most of the texts I've looked at so far get caught up in particular swarm types or don't quite address the issue I mention in detail.
I'm well aware of Stephen Wolfram's work in this field by the way, and if anyone has a recommendation for a particular publication of his that'd be appreciated as well. Thank you in advance.
r/AskComputerScience • u/Connect_Diver_769 • Jan 31 '26
Got an assignment from uni,I have to solve 3 linear equations using the crammer rule.I have the basics sorted but this is some next level stuff.Please assist if possible.
r/AskComputerScience • u/Sure-Positive-5746 • Jan 30 '26
Hey,
I'm an incoming undergraduate CS student, currently finishing hs. I'm already quite familiar with some programming, but nothing serious.
As the title says, I would appreciate recommendations on CS books that can make me understand the field in a more contextual and conceptual way, e.g. what compromises CS?, history of CS, etc.
I know I can just go to the internet and do so (already have done it), but I would like to read a proper book before starting the degree.
Thanks!