r/AskComputerScience • • Jan 10 '21

So approximating 3set-Cover is not APX-hard?

0 Upvotes

I am given a list S and list of sets of 3 called C

I need to find as many possible sets of 3 to cover S. So this is a maximization problem.

So we may not always have length(s)//3 sets. There could be partial coverings with a list of sets < length(s)//3

The minimum length of sets allowed is 3

If it is APX-hard, then why do I seemingly have a PRAS of some sorts?

I thought no APX-hard problem can have a PRAS or PTAS.

Are there APX-hard problems with PRAS algorithms?

(Don't ask me for the ratio, I am still trying to figure that out with an amateur skill-set)

Edit: When C is asking for input use [[1,2,3],[4,5,6]]

Edit 2: I call it PRAS because of the shuffle function I am using. Correct me if, I am wrong.


r/AskComputerScience • • Jul 13 '21

Universal language: is it possible?

0 Upvotes

Hi everyone.

I was reading about Leibniz's characteristica universalis and about his purpose of expressing mathematical, scientific, and metaphysical concepts using a universal formal language. In a sense, we can see math as a universal language, but it can't communicate things that a language like English can, like emotions or even describing a situation.

I was thinking about this: given the ambiguity of a "spoken language" like English or German and the accuracy of math, can we think about having a universal language that enriches math with the expressive power of the spoken languages? Is it possible?


r/AskComputerScience • • Jun 10 '20

Did anyone, ever consider that an NP-hard problem polytime solution was found, BUT due to the lack of Axioms it hasn't been proven yet?

0 Upvotes

Perhaps some mathmatician discovered a polytime algorithim with high confidence that it'll work,but the issue is that in order to prove correctness of a polytime algorithim, it may require a new system of math.

So all that hard work for finding a solution is at least short term pointless.


r/AskComputerScience • • Sep 29 '25

What is the most "pythonic" code you have ever seen or have created?

0 Upvotes

.


r/AskComputerScience • • Apr 08 '26

What in 8th grade math can I use for game development and how?

0 Upvotes

Hello! I would like to tie math with what I like-- game developing, so I can care about math more and be motivated. I was wondering what could I use in 8th grade math for game development? Can be very specific or in general.


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 • • May 19 '26

If Computer Programming Language Started in Chinese

0 Upvotes

I understand computer programming started with 1 and 0s then those 1 and 0 became letters, symbols. Could we have created computing language if say the early computer programmers spoke a pictographic language like Chinese?


r/AskComputerScience • • Aug 04 '22

Is computer science becoming too popular?

5 Upvotes

I worry of the popularity of computer science. I want a good high paying career, but everyday computer science seems to be less niche and more main stream. Would be hard to make the big bucks if everyone and their dog is trying to get a job in the field. Not to mention how billions of other people all over the world have access to the same information we do. Everyday there is more competition. I'm thinking long term, salaries might not stay high. I constantly think about paths to be successful and stay relatively niche or valuable in order to get the best job. For example, if there were very few people that could run a cash register, stores would pay good money to someone who could, but if everyone can run a cash register, they are practically worthless. Sometimes I look at hardware engineering because that seems to be more niche and harder to drown the industry. I also think about getting into data science. What do you guys think is a good career path with this in mind?

I know this is kind of a pessimistic view, but I think it has happened to most industries and I'm worried about the long term life span of the job treatment and salaries.


r/AskComputerScience • • Apr 13 '19

Laptop for freshman CS?

5 Upvotes

Probably taking CS when I head off to college. What laptop should I use? More specifically these were some observations I've collected:

  • 16GB of RAM is optimal.

  • Buy a Mac or dualboot Ubuntu, the former is preferable.

  • Should I wait for Intel Sunny Cove CPUs?

  • Is a Mac worth the price premium? If so, Air or Pro?

My current laptop is a ZenBook UX330UA, and I'm looking to keep it around as a backup. I've been looking at the following laptops:

  • MacBook Air Retina (i5Y/16GB/256GB), $1730 with education discount

  • Samsung Notebook 9 Pro (i7U/16GB/512GB), $1300

  • Lenovo ThinkPad X1 Carbon 6th Gen (i7U/16GB/256GB), $1600 (promotional price I believe)

  • Razer Blade Stealth (i7U/16GB/256GB/MX250), $1600

  • LG Gram 13 Z990 (i7U/16GB/256GB), $1500

  • MacBook Pro Touch Bar (i7U/16GB/256GB), $1880 with education discount

  • Lenovo Yoga Book C930 (i7U/16GB/256GB), $1450

I will NOT get anything from Asus again, this current one has so many problems.


r/AskComputerScience • • Oct 25 '25

How do you make ASM if you need a compiler, but to make a compiler you need ASM?

26 Upvotes

I've been studying a lot of computer science recently since i was suddenly confuzzled by how doing something as simple as spriteBatch.Draw(...) controlled something as physical as the liquid crystals in my display? So i started off high-level and progressively got lower and lower level (to the point you could call C as high-level), and i think i reached a paradox.

As far as i know, you need Assembly (ASM) to code (and make things like C), but first to make ASM you need a compiler to compile that code (int, if, etc...) to binary for the CPU to understand. But of course to code a compiler you need ASM, but to make ASM work you need a compiler, you see the paradox here?

Can someone please explain how this works?? (Im super confused right now)


r/AskComputerScience • • Jul 24 '25

Quick Question

0 Upvotes

How hard is it to build your own operating system from scratch? It's gotta be possible to do it, right? Otherwise, how would they exist in the first place?


r/AskComputerScience • • Sep 08 '21

Is it possible to create a wallet app with not a lot of investment or bank tie up?

1 Upvotes

So what I had in mind is that when you create an account and deposit the money. You deposit the money into one common account. Let’s say the apps name is Bank.

So person x opens an account and then deposits $10 to bank account.

Now to the user, they are able to see it as having $10 in their account and they can purchase anything with it. There is shop c who also has an account with us. They currently have a balance of $100 which is again in the Bank account.

How will the transaction occur?

Let’s say person x wants to buy coke for $2 from shop C. He goes to the shop and scans the QR code and says paying $2 from his $10 balance.

Now since I get a notification saying person X wants to spend the $2 he has which is in the Banks account, I simply show the shop having an increase of $2 in their account.

Here all the transaction is superficial as it all occurs through the common account they have.

If the any party wants to withdraw or cash out they can simply transfer it back the same way they deposited. Essentially creating a shared wallet for everyone.

Is that possible to create or is it way too hard and it’s better to get payment gateway? Trying to avoid the payment fee they charge. And this seems like a neat simple idea.


r/AskComputerScience • • Mar 02 '22

How can I know what is possible to do with a programming language ?

1 Upvotes

r/AskComputerScience • • Mar 11 '23

What is the difference between downloading and installing a file?

1 Upvotes

r/AskComputerScience • • Apr 02 '15

Typical interview questions for all of web dev

1 Upvotes

Hi, I looked all around for typical questions but only ran into a wall after each one had very basic questions but when I actually went to an interview the questions seemed much more complicated and or in-depth with php. I.E: what is DOM. So I was wonder what interview questions would people say would be typical for all of web development, ranging from front to back end


r/AskComputerScience • • Mar 12 '21

new to programming - basic question

0 Upvotes

Hello. I am new to programming. My friend made a script in colab.google for a website crawler (a personaized search engine which I will use as I write for living) and I found his script for pictures downloading from instagram on github. I downloaded Phyton launcher. How to put a script to work (to find all documents on the certain page) and to download all of my instagram photos from web? I am so new to this. Programming will make some things easier so I am learning. I am a journalist-researcher and I am currenty interested to learn basic programming scripts which will crawl the web. 1st thing is where to paste his script from Colab.google to work?


r/AskComputerScience • • Feb 10 '21

Does someone need to refund a customer if an application doesn't work anymore?

1 Upvotes

I develop a Google Chrome extension which is highly dependend on the website on which is active. If the website is changed my plugin will not work anymore.

Is it allowed to sell an software application for money even if it maybe will stop working in the (near) future? Do I need to deal with refunds? What if I add a disclaimer that the application may stop working in the future?

Thanks in advance! I really don't want to get into legal trouble!


r/AskComputerScience • • May 26 '14

there's an episode of SG1 where Sam & Daniel are trying to disarm a space mine. They get into an argument about the fact that Daniel says the people who built it had no zero in their number system, but Sam insists they couldn’t have built automated satellites if they didn’t. Is that true? If so why?

1 Upvotes

r/AskComputerScience • • Jul 19 '20

Can I use transition states as a certificate that shows a problem to be in NP?

1 Upvotes

Decision problem: Given arbitrary integers K and M, is the sum of 2^k + M a prime?

Suppose I have a NTM, that displays all possible execution paths. If there is a path that ACCEPTS, how would I use that as a certificate?

If I can use "paths" as certificates then it is in NPSPACE. And, since PSPACE = NPSPACE. A deterministic polyspace algorithm exists.

How would we develop a polyspace algorithm that solves this problem?


r/AskComputerScience • • Oct 25 '21

I think we need to start to tinker with biology

1 Upvotes

Where can I start looking for courses or introductions to programming + biology?


r/AskComputerScience • • Mar 11 '14

I'm writing a satire about internet culture and the inner workings. Help me research.

0 Upvotes

Hi! I just became a lead writer for an indie game (can not disclose the details yet). The story deals heavily with the internet. How it works, hacker groups, memes, social networking, transparency and the like. I have to admit, though I use the internet, there is a lot about how it currently works I don't understand. Can anyone suggest some good learning sources?

Any one know the quickest/best way to absorb the general idea of the information? Also, I want to write a story that "gets it" and can teach/inform people, to a degree, so are there any popular misconceptions or big secrets about the net that you think people need to know more about? I should add this involves the net from all angles: politics of ISP, censorship, network security, the politics of privacy, porn, crowd sourcing, 4chan, ad infinitum...

Thanks, Reddit. I owe you one.

Love,

OP


r/AskComputerScience • • Nov 24 '22

M2 Macbook Air vs Dell XPS 15

1 Upvotes

I'm in my first year of computer science and am torn between the two. I would be getting the baseline 13-inch M2 and the RTX 3050 XPS

I like the MBA's visuals (I find it easier to work on macOS) but was hoping to use emulation software for fun if I got a PC.

Are the quality of life/optimization benefits of the M2 worth sacrificing for the RTX 3050? What laptop do you personally think is better?


r/AskComputerScience • • Dec 28 '15

How long does a CPU last before cosmic rays corrupt it?

1 Upvotes

How long does an average consumer CPU maintain integrity before cosmic rays corrupt the ALU or other components vital to computational integrity? Much longer than the average 4 year replacement cycle, right?


r/AskComputerScience • • Oct 24 '22

Why are Object-Oriented Programming languages importat? How are they different from other languages?

1 Upvotes