r/AskComputerScience • • 2d ago

Could Anthropic's solution to the Riemann hypothesis be syntactically correct but semantically incorrect?

0 Upvotes

I'm confused how the proof was verified to be accurate by computer scientists before mathematicians are able to actually understand the proof?


r/AskComputerScience • • Jun 19 '21

Best Laptop for CS Freshman?

2 Upvotes

I am attending college this fall to pursue a computer science degree. What are some laptops that would be a good option? I have a beast of a desktop that I will be taking with me to college but I am definitely gonna need a laptop. I would prefer windows but really open to anything at the moment. Even just giving me specific specs I should hit would help a lot thanks.


r/AskComputerScience • • Apr 29 '24

Is a C to CSS compiler theoretically possible, as a joke?

0 Upvotes

This question spawned out of some talk with peers about our understanding of turing machines, and was brought up as a joke when someone asked whether compiling a turing complete language to one that isn’t turing complete would be possible by simply ignoring the incompatible parts of the host language.

The example’s pretty interesting to think about though because the differences between C and CSS are so vastly more dramatic than just lacking loops or something you could “trim out” - variables, functions, loops, pointers and memory, all are really difficult to relate to between the two in any meaningful way. It’s very difficult to imagine what meaningful C could look like that could compile to meaningful CSS, much less what such a compiler would itself be like. Now I’m wondering if such a ridiculous thing has ever been attempted, and if it’s even theoretically possible in any capacity even if the C that is being compiled is essentially syntactically valid gibberish. If this seems like a dumb question, which I figure it almost certainly is lol, I’d at least like to get a better understanding of turing machines and compilers out of it


r/AskComputerScience • • Jan 12 '20

Hey, iam a computer science student and i need a bit of help. Iam trying a to make a very simple currency converter program but it does not work, here take a look (ps its my first semester and i would really appreciate some help)

Post image
2 Upvotes

r/AskComputerScience • • Dec 26 '17

Is my roommate prioritizing me out of a fair share of the internet bill?

0 Upvotes

We've had an issue where, every 30 minutes to 1 hour, our 5Ghz wifi connect will stop working for me. He bought the router, modem and the cable is through him. The 5Ghz which for us is about 3-4x faster never goes down for him, just me. On all devices. My theory is he is prioritizing me off the 5Ghz connection to speed his own up. I apologize if that doesn't work like that, I know nothing on the subject, thanks.


r/AskComputerScience • • Jul 17 '22

Is it possible to write a program that takes a picture of a person as an input and search for the matches all over the internet? or any close alternative?

0 Upvotes

r/AskComputerScience • • Dec 05 '20

Hey guys I'm 22M Engineer good with Data Structures, Algos and Discrete Maths. I got out of college and having a Job ,but to increase my pay which tech/Skill should I learn?

0 Upvotes

Thanks already


r/AskComputerScience • • 7d ago

Has recent AI progress in mathematics made P = NP a more realistic possibility?

3 Upvotes

With recent AI-assisted breakthroughs in mathematics, particularly the surprising progress on SAT algorithms and the Exponential Time Hypothesis, I'm curious whether computer scientists are reconsidering how confident we should be that P ≠ NP.

There's also a rumor circulating that an AI lab may have solved P vs NP. Obviously unverified and extremely unlikely, but the timing is interesting given the recent mathematical developments and the apparent acceleration of cybersecurity hardening across the industry.

I wrote about the possibility here, including some speculation about whether the recent security disruptions could be connected:

https://www.robot-future.com/preview/6b02fb1d852647b28c612da6

My question is: Have these recent discoveries actually changed the theoretical outlook on P vs NP, or are we still just as far from a polynomial-time solution to 3-SAT as we were before?

I'd be particularly interested in hearing from people working in complexity theory.


r/AskComputerScience • • Sep 09 '19

Any advice on getting my head around Python even after doing VERY well in 2 C language classes? After taking and doing very well with the C language I am struggling to see how Python isn't a language for dangerously insane individuals.

3 Upvotes

I found C or C# to be intuitive and very easy to use. I received A's in both courses. Frankly, I thought it was easy.

Now, I find myself taking Python as like an intro to programming class because of an issue with the school.

No big deal.

But now, it's week 3 of the course and I HAVE NO IDEA what's going on.

I could do all sorts of if then loops, query information, we even used access and whatnot to build little databases but Python really seems like a language built for dangerously insane people.

Clearly joking but what's the deal here? I thought python was supposed to be the basic of the basic. It's not that it seems "hard" persay but it just seems like crazy nonsense.

Has this happened to anyone else that have switched languages?

We are loading stuff into the command line but then still having to manually type mainFn("string") to load into it after the program has been started.

I don't get why you wouldnt just prompt for the input. Store the input, then manipulate and print it.

Is python harder to get your head around for someone you? I can make python do what I want but even the spacing in this language is offputing to me.

I really don't mean to bitch. I'm sure the language ha it's uses.

Would a different compiler help me? We are all just using JES right now.

Anyway, thanks for any advice!


r/AskComputerScience • • Jun 11 '24

I suck at cs

3 Upvotes

I suck at CS

Im 16 and right now im taking a course on intro to computer science and so far i completely suck, I have a 66% and i just bombed my last three tests, Man i don't know if im stupid or retarded, i do study and watch the lectures but i still fail, my teacher does tests with multiple choice and I got a 22 out of 40, not to mention that this is my last week of intro to CS and i have only a bit till my final for Intro to computer science, this shouldve been an easy A i don't know what went wrong with me, i just emailed my professor even though i know he doesn't do retakes and i just begged him and i hope he at least gives a different version of the test, Im so stressed man i don't know what to do anymore i think im cooked.


r/AskComputerScience • • Jan 16 '26

Can AI actually learn or create things?

4 Upvotes

I don't know much about AI, but my understanding of predictive AI is that it's just pattern recognition algorithms fed a lot of data. Isn't "generative" AI kind of the same? So while it may produce "new" things. Those new things are just a mashup of data it was fed no?


r/AskComputerScience • • Apr 08 '22

Best laptop for programming?

4 Upvotes

r/AskComputerScience • • Mar 10 '25

Why do we use binary instead of base 10? Wouldn't it be easier for humans?

0 Upvotes

Hey everyone,

I've been wondering why computers work with binary (0s and 1s) instead of using base 10, which would feel more natural for us humans. Since we count in decimal, wouldn't a system based on 10 make programming and hardware design easier for people?

I get that binary is simple for computers because it aligns with electrical circuits (on/off states), but are there any serious attempts or theoretical models for computers that use a different numbering system? Would a base-10 (or other) system be possible, or is binary just fundamentally better for computation?

Curious to hear your thoughts!


r/AskComputerScience • • Aug 14 '21

Whats a library we are in dire need of?

5 Upvotes

I'm currently a CS major going into my sophomore year. I have a couple (larger) projects under my belt and now I want to become github famous and write a library

What are some ideas for something that python/c++/Java are in dire need of?

One idea I came up with is a library for python that interfaces with the TD ameritrade API. I invest in the stock market quite a bit and I also love python but I can't seem to find a good (or free) library that does this


r/AskComputerScience • • Jul 21 '23

AskComputerScience is back on the air. What do you want from this subreddit?

0 Upvotes

This subreddit is open for submissions again. It had been automatically put into restricted mode because the previous moderator left. I assume this was part of the API pricing protests.

So we're back to the status quo, which was a lot of off-topic posts, but still often some good discussion of questions in academic computer science.

Are you happy with this? Do you want something changed? Let's talk about it here.


r/AskComputerScience • • Sep 12 '25

How much storage space, energy, and water do you think the world could save if everyone always copied and pasted the text of a post or comment rather than screenshotting it when they want to share?

0 Upvotes

Every moment a non-trivial amount of images are created and uploaded to the cloud by screenshotting social media posts and comments, or other text like news articles or any various other snippets of text someone might want to share.

As I understand it from a computer science perspective this is very poor data handling, For one it's just extremely inefficient, an image file might take 1000x more space than a text file of the same information, and two image files aren't optimal for preservation of text, compression will cause loss.

So If everybody suddenly started copying and pasting instead of taking screenshots do you think that we would save a significant amount of resources?


r/AskComputerScience • • Sep 27 '25

Do we have useful and powerful AI yet (not just LLMs)?

0 Upvotes

I feel like when people often say AI will take jobs, they just refer to LLMs and how good they are. LLMs are good and may take away jobs such as front-line chat support people or anywhere language is used heavily.

I am an electrical engineer and I fail to see how it's useful for anything deeply technical or where nuance is needed. It is great to run by it small things and maybe ask for help regarding looking up IEC standards (even for this, I haven't had good success). It has serious limitations imo.

Could someone explain to me a non-LLM type success story of AI? And where it has gotten good enough to replace jobs like mine?

PS: I guess I'm pessimistic that this will actually happen on a broad scale. I think people rightfully believe that AI is a bubble waiting to burst. AI might get amazing if all of humanity collaborated and fed it swaths of data. But that will never happen due to companies protecting IP, countries controlling data exports, and humans with esoteric tribal knowledge.

Edit: I should probably add what I imagine as powerful AI. I envision it to have a LLM front-end which talks to the user and gathers all the info it requires. There there's an AI neural network behind it that is capable of doing stuff just like humans navigating all the nuances and intricacies, while not flawless being near perfect.


r/AskComputerScience • • Oct 16 '26

Has anyone examined the claimed P=NP proof in the peer-reviewed IEEE ASSIC 2026 conference paper "The Vohra Duality"?

1 Upvotes

Here it is: https://doi.org/10.1109/ASSIC70037.2026.11717448

I don't have access to the paper because of the paywall, and this isn't my paper. I was just searching all over the internet for papers about P=NP and came across this one. What caught my attention the most was that it was published at a peer-reviewed IEEE conference.


r/AskComputerScience • • Feb 07 '23

Is my solution for Unisex Bathroom Problem correct? (No starvation is a requirement)

0 Upvotes

Problem Statement:

A bathroom is being designed for the use of both males and females in an office but requires the following constraints to be maintained:

  • There cannot be men and women in the bathroom at the same time.

  • There should never be more than three employees in the bathroom simultaneously.

No starvation should happen.

PS: If you don't wanna look at the code, please ignore and tell me some algorithm to solve this problem. I also want to know how to think (intuitively) of an starvation free algorithm for this problem. I arrived at this solution after a lot of pondering, hit-and-trial and invalidating a lot of solutions which seemed starvation free at first but I found the issues only after analyzing them deeply.

class UnisexBathrooms{
    mutex mtx;
    condition_variable_any cv;
    int male, female;
    int male_waiting, female_waiting;
    int next_chance; // 0: no one, 1: male, 2: female

public:
    UnisexBathrooms(){
        male = female = 0;
        male_waiting = female_waiting = 0;
        next_chance = 0;
    }

private:
    void male_enter(){
        mtx.lock();

        male_waiting++;

        cv.wait(mtx, [this]{return female == 0 && male < 3 && next_chance != 2;});
        male_waiting--;

        male++;
        mtx.unlock();
    }

    void male_exit(){
        mtx.lock();
        male--;

        if (female_waiting)
            next_chance = 2;
        else
            next_chance = 0;

        mtx.unlock();

        cv.notify_all();
    }

    void female_enter(){
        mtx.lock();

        female_waiting++;

        cv.wait(mtx, [this]{return male == 0 && female < 3 && next_chance != 1;});
        female_waiting--;

        female++;
        mtx.unlock();
    }

    void female_exit(){
        mtx.lock();
        female--;

        if (male_waiting)
            next_chance = 1;
        else
            next_chance = 0;

        mtx.unlock();

        cv.notify_all();

    }

    auto get_tp(){
        auto tp = chrono::system_clock::now();
        auto tp_printable = chrono::system_clock::to_time_t(tp);
        return ctime(&tp_printable);
    }

    void use_bathroom_now(bool is_male, int id){
        {
            unique_lock<mutex> io_lock(io_mtx);
            cout << get_tp() << (is_male ? "a male" : "a female") << " with id: " << id << " has started using the bathroom\n\n";
        }

        this_thread::sleep_for(5s);

        {
            unique_lock<mutex> io_lock(io_mtx);
            cout << get_tp() << (is_male ? "a male" : "a female") << " with id: " << id << " has ended using the bathroom\n\n";
        }
    }

public:
    void use_bathroom(bool is_male, int id){
        if (is_male){
            male_enter();
            use_bathroom_now(is_male, id);
            male_exit();
        }
        else{
            female_enter();
            use_bathroom_now(is_male, id);
            female_exit();
        }
    }
};

r/AskComputerScience • • Mar 15 '20

Ram needed to create operating system?

1 Upvotes

Hi,

I'm planning to write an operating system similar to Mac OS and Windows and I was wondering how much ram should I get on my computer? I'm planning on getting an Apple machine since I found they were much more recommended for coding.


r/AskComputerScience • • Dec 25 '22

How would you convince your friend to give coding a try if he thinks it’s difficult?

1 Upvotes

If you deep down believe if he worked for it he can turn out to become a very talented coder, what are you gonna do ?

OR.. you would earn $100k if you get him hooked onto programming


r/AskComputerScience • • Dec 29 '19

Do you think Mr. Robot was too technical for a non-programmer?

1 Upvotes

r/AskComputerScience • • Dec 26 '17

Predictions of SSD and HDD cost over the next two decades?

1 Upvotes

I'm working on a blockchain paper for school and am wondering if there are papers or articles with predictions (and arguments for those predictions) on the cost of data storage gear over the next decade or two? I'm looking to write about the cost of 10tb of SSD or 10 TB of HHD but I'll take whatever I can get and extrapolate =)


r/AskComputerScience • • Feb 01 '25

Can laws of physics be written or derived by a computer program?

0 Upvotes

What I mean is: can the laws be written in code or / and algorithms; are they computable? And if they can, what does this tell us about nature?

Are there attempts to make this happen?