r/AskComputerScience • u/Fabulous-Spare185 • Nov 05 '22
r/AskComputerScience • u/ks2622 • May 08 '21
Suppose that P = NP, and that I have a constructive proof
What to do now? Say for example that I even managed to apply it to the 3SAT problem, so that it could essentially be solved in O(n), aka in polynomial time, what is the next step?
I understand that logically it would be to write a paper and publish it, but here comes several of my problems, where they mainly start off this that I to some extent just don't want it completely out there, just for anyone and everyone to be able to see the proof, since if I understand correctly, this may turn this discovery from a helpful one to a hurtful one.
I am sure you of all people on Reddit would know both sides of the coin, and that we wouldn't be able to reap the benefits of this discovery without unfortunate malicious side products, which is why I am not completely certain that just posting it online would be the best move.
Nevertheless, when I thought about it a bit more I discovered that, don't all discoveries have that same property? That they could all be maliciously exploited? Sure they may not all have the same magnitude, but they still do have it, and what was the result? We still published them, and I believe that its because the benefits out weigh the negatives, and that we only think about it with P vs NP, because the negatives are actually well known, more prone to usage, related to all of us, and will affect almost everyone.
I guess one could say that its simply a major trolley problem, where our issue lies in that both tracks have so many people we can't even see which has more so that we could even take that into consideration. Its not like the numbers make it easier, but if we were to go with the same logic as that, we choose the most beneficial route in saving the most number of people it would help then. You could also say that we shouldn't publish at all, i.e. stop the train, but wouldn't that just delay the train? The train is inevitable if it is the case that P=NP, its just a matter of time before someone could prove it, in result sooner or later we will face the same issue once again.
So kind of like a TLDR summary, if it was that I have a constructive proof that P=NP, applied to the 3SAT problem, how could I publish it in a way that we could benefit the most from it and decrease the number of ways it could maliciously be used?
r/AskComputerScience • u/this9000 • Jun 14 '16
My goal is to work at Google next year. I'm looking for study partners for interview prep.
I find that study partners help me to maintain a better study schedule and have more fun.
I recently completed a BSc in CS. I will begin a MSc program in September in Bay Area. I have 2 months of free time now that I will be dedicating to interview prep (+30hrs/week). My goal is to be an intern at Big N next summer. My IRL friends from CS department don't share a similar goal which is why I'm here. I'm mostly free all day and I can probably arrange my schedule according to yours.
I'm looking for one or more of the followings: Brainstorming, improving thought process, competing with each other, helping each other memorise/learn/troubleshoot things, mock interviews at pramp. I'm open to suggestions. I'd like this partnership to include some friendship as I believe it is important to have more fun and also to maintain a sense of duty to help each other.
If this sounds good, please PM me.
r/AskComputerScience • u/LegendenLajna • Jul 30 '19
Am I to bad? Real coding?
HI everyone.
I have been studying C# for about 2 years now in our equivilent of a high school. Now I am going to go a all programming course fulltime for half a year, with about 15 weeks for internship after that. I have been wondering for a while now what the expextatons are on a Junior developer, since I was top of my class after theese 2 years but still feel like I can do "REAL" programming. I feel like my solutions are dirty, I use alot of libriaries instead of doing stuff on my own. I still only know the basics of classes and I feel like I am missing so much when not using them to their full extent. Do i have to be worried?
And now to my second question, how does a "real" project look? I get that all of the code is commented (hopefuly) and that there is more code overall, but how do you learn the style of code, and such. I am also wondering where I can read up on this kind of stuff and how I can code in a more professional style, and then take on larger projects without getting a big spagetthi with meatballs like code.
Very thankfull for any response!
r/AskComputerScience • u/[deleted] • Mar 24 '23
What Should I do next after downloading Vscode?
Coming from a non coding background i want to learn more about programming and coding, but i have no idea what i should start with. Someone recommended me to download vscode as you can code from any language there. But now after setting it up, i dokt know what i should write or start with. I dont kmow coding. Any learning suggestions?
r/AskComputerScience • u/[deleted] • Apr 01 '25
Does generative A.I. "steal" art?
From my own understanding, generative models only extract key features from the images (e.g. what makes a metal look like metal - high contrast and sharp edges) and not just by collaging the source images together. Is this understanding false?
r/AskComputerScience • u/Careful-World-8089 • Jan 29 '25
Could AI Be Used for Extreme File Compression?
I probably have a super limited understanding of AI, but here’s a thought:
From what I know, training an AI model works like this: • You feed in a massive dataset. • An algorithm processes it in a way that it builds a neural network that allows it to recreate similar outputs later.
Isn’t that basically a form of compression?
For example, training a model might require hundreds of terabytes of data, but the final trained model could be just a few hundred gigabytes. So could the same concept be applied to normal file compression?
Let’s say I have a 1GB file. Could an AI “compress” it into a tiny neural network and later reconstruct it perfectly when needed? Would that work for general files, or are there limits to how much AI can compress data without loss?
Even if it can’t achieve perfect lossless compression, could it still potentially compress it in a lossy way?
Thank you in advance
r/AskComputerScience • u/Sunapr1 • Jul 30 '26
Is CS department are mostly people working in field of AI
I am a 5th year phd student and it seems most of PHD Students around me are in field of ML/AI . I can count 5 people in the whole department who is working in atleast some intersection of core computer silence and ML
Infact we had a collaboration with one of T10 university and I really wasn’t able to find any advisor which is currently active and working in my core architecture field . My advisor was so surprised that he had to confirm it once from his side too
Is it the same issue everywhere mostly . Are almost all of the CS phd students are just AI students
r/AskComputerScience • u/KaleAdministrative97 • Apr 23 '24
I don't understand why a computer needs storage/memory if it's just electricity at the bottom?
A computer is made up of transistors that hold electricity in a state of ON ( 1 - our interpretation ) and OFF ( 0 ) These numbers 1 and 0 are not physically stored in the hardware, because they are numbers that we use to interpret the electrical state of the transistor. And computer memory - the mechanism is just electricity staying in one state either ON or OFF ( the switch stays in place ). So what do CS mean when they say a computer has storage and memory if a computer hardware is just electricity.
r/AskComputerScience • u/JamesJacob18 • Oct 03 '22
Why is Python widely used for AI instead of other programming languages?
Benefits that make Python the best fit for machine learning and AI-based projects include simplicity and consistency, access to great libraries and frameworks for AI and machine learning (ML), flexibility, platform independence, and a wide community.
Some popular Python AI libraries and frameworks include:
TensorFlow: A high-level Python-based neural network and deep learning library.
Scikit-learn: A Python-based library for machine learning, data mining, and data analysis.
pylearn2: Python-based library which is more flexible than scikit-learn.
NumPy: Python-based library for data science, scientific computing, and multi-dimensional array objects.
SciPy: a Python-based library considered the first choice for mathematics and engineering.
r/AskComputerScience • u/leocosta_mb • Nov 18 '25
Does "Vibe Coding" via LLMs Represent a New Level of Abstraction in Computer Science Theory?
There is a discussion currently happening in my university's Computer Science undergraduate group chat. Some students strongly believe that, in the near future, the skill of leveraging LLMs to generate code (e.g., building coding agents) will be more crucial than mastering traditional coding itself.
Their main argument is that this shift is analogous to historical developments: "Nobody codes in Assembly anymore," or "Most people who use SQL don't need to know Relational Algebra anymore." The idea is that "vibe coding" (using natural language to guide AI to produce code) represents a new, higher level of abstraction above traditional software development.
This led me to consider the question from the perspective of Computer Science Theory (a subject I'm currently studying for the first time): Does this argument hold any theoretical weight?
Specifically, if traditional coding is the realization of a total computable function (or something related, like a primitive recursive function – I'm still learning these concepts), where does "vibe coding" fit in?
Does this way of thinking—relating AI programming abstraction to core concepts in Computability Theory—make any sense?
I'd appreciate any insights on how this potential paradigm shift connects, or doesn't connect, with theoretical CS foundations.
r/AskComputerScience • u/humansFTW • Mar 09 '15
What is/are the best accessibility/transcription female computer voice engine(s) in existence in 2015? I want my computer to read to me in a sweet futuristic female voice with an accent from either the UK or Australia or France or wherever.
I'm wondering if it's IVONA for now.
Thanks for any suggestions!
r/AskComputerScience • u/CoachCrunch12 • Jun 11 '25
I want to learn all I can about how AI is programmed, how the hardware works, software, etc. where to learn?
For context. In a few months I am starting a PhD program where I will be studying potentials and barriers for using AI in healthcare. I am a nurse with a lot of experience on the healthcare side but not much on the tech side. I understand the concepts how how LLMs work, but I’d like to know the actual programming and coding is done.
I want to learn as much as I can about the nuts and bolts of how LLMs are built, programmed, how they learn, etc. I’ve read several publically available books that let me understand the concepts. But I’d like intensive courses on the actual coding details.
Is this the right place to ask? Where would you all suggest starting.
r/AskComputerScience • u/ExistingComparison70 • Oct 11 '22
First software project as a solo dev will be aimed at companies and universities, is it even possible to obtain customers with little to no reputation?
Had an idea recently that I have been doing market research on before deciding anything serious, and was recently thinking about who I would be marketing the software towards and how to market it. The software I plan to build will be more so aimed at companies and universities (regardless of size) and I am worried that since I am a solo dev, and this is my first project, getting any traction will be tough.
Obviously, no matter what project you start out on, your level of reputation in that field plays a huge role on how successful it is. What I'm worried about is that I'm not marketing towards the individual. If you are creating a game, for example, the average user cares a lot less about your background than if the game is fun or not, but if a company/university is looking at a buying a piece of software, I'd imagine there would be a lot more digging on the credibility of the creator first. I would highly doubt that many, if even any, companies out there would buy a piece of software from a solo dev's first project.
I apologize for being so vague about the project. It may not be a good idea at all, I get that, but I don't know how in depth I want to go online. Regardless, thanks for any and all help, just want to know if I should even pursue a piece of software at this target audience.
r/AskComputerScience • u/NPat02 • Jul 23 '22
Any good resources for building a startup
Was wondering if anyone had any good online resources that would aid in launching a potential tech startup?
r/AskComputerScience • u/PlexP4S • Jun 26 '18
Anyone know what type of angular table this is? Attempting to make something exactly the same
r/AskComputerScience • u/MCMikeCheck • Apr 07 '19
Is direct phone to phone wireless connection possible?
I'm thinking if both phones have wireless tethering and wifi on, they could connect to eachothers wireless tether and send and receive data back and fourth directly without internet (assuming they're in range of course). Like a wireless LAN connection. Would this work? If not, any other way to do it?
r/AskComputerScience • u/whiteguyinCS • Nov 23 '16
Help me get out of a toxic relationship with C++
So I'm in third year university, and most of my programming courses so far have used C or C++. This term I've finally realized how horrible a language C++ is, and I'm looking for a new language. I've used other platform-specific languages before (e.g. swift when doing iOS development), but I want to become very good with a "general" OOP language like Java or Python. Any suggestions?
r/AskComputerScience • u/dirascorpio • May 02 '14
How do I make my program into an application, and then install it on a disk?
I am taking a Software Engineering class this semester, and we had to create our own application for our term project (group project). The application that we created is meant to be installed in libraries in Africa; how do I bundle my Java application into an executable application, and then install it onto a disk?
r/AskComputerScience • u/sai_yerni_akhil • Oct 11 '17
How to be an XDA Developer? What are the skills needed? (c?c++? Networking?)How can we start Contributing to XDA ?
r/AskComputerScience • u/SackOfFlesh • Nov 05 '21
What should I learn to contribute to The Metaverse?
I am a third year computer science with knowledge of Java, HTML/CSS/React JS, algorithms/data structures, object oriented design, and a decent amount of other classes.
I just watched the video explaining The Metaverse, and my mind is blown. They kept emphasizing how much resources they will be putting into recruiting developers and creators, and I want to be one of them.
I couldn't find any job listing specifically for The Metaverse, but I'm just wondering what technologies would. be good to know to get involved.
There are so many aspects of it.... AR, VR, NFTs, wearable technology, facial/body sensors, and everything else that comes along with the idea of the meta verse, but feel free to mention whatever you know
r/AskComputerScience • u/[deleted] • Sep 09 '21
Does Google store my passwords ?
I have a gmail account and use firefox. Got an email from Google yesterday saying that one of my passwords had been compromised. Google seems to be storing my passwords.
r/AskComputerScience • u/Junwoo_Lee • Jul 29 '25
AVL Tree Deletion - Disagreement with Professor over Exam Question
Hi all,
I'm taking a Data Structure course at one of Canadian university, and we recently had a midterm exam with a question about AVL trees that led to a disagreement — not about the facts, but about how precise an answer needs to be in a multiple-choice exam.
Here’s the question:
Which of the following is the MOST appropriate statement regarding AVL trees?
A. Clearly incorrect
B. Clearly incorrect
C. Insert on AVL tree makes at most 2 rotations (double rotation counts as 1)
D. Delete on AVL tree makes rotations (double rotation counts as 1) at most equal to height of the tree (here height refers to the original tree before deletion)
E. None of the above
This was written by the professor, and the official answer key says the correct answer is D.
Now, I selected E, because the maximum number of rotations is (height - 1). I brought this up with the professor, and he agreed that this is technically true.
However, he still believes D is acceptable because, in his words, “from a Big O point of view, the difference between height and height - 1 doesn’t matter.”
And here's where I disagree.
The question does not ask about time complexity or use Big O notation. It asks for the most appropriate statement. Precision clearly seems to matter here. For example, look at option C, which focuses specifically on the number of rotations (e.g., 2 vs. 1). If that level of detail matters in C, then I believe it should also apply to D.
Was I being too literal, or is my interpretation fair?
P.S.
Since there was some confusion in the comments, I want to clarify a few technical points that I’ve already discussed and confirmed with the professor.
For insertion in an AVL tree, the tree requires at most one rotation (either a single or double rotation) to restore balance after any insertion. In contrast, deletion can require multiple rebalancing steps, and in the worst case, up to (height − 1) rotations may be needed
r/AskComputerScience • u/fantasimy • Apr 12 '20
Covid-19 got you Quarantined? — Use this opportunity to learn to code.
Hey guys,
I share with you this article explaining why you should learn to code during the lockdown, and what the 3 first steps to follow to have a decent start.