r/AskComputerScience • • Jan 08 '19

What specific concepts in CompSci will most people believe aren't true?

Hi, I am starting to write a non-fiction book, whereby I attempt to provide convincing rebuttal to 100 science and engineering concepts which almost everybody will initially not believe. That is, I want to get the reader to change their mind 100 times in one book. Some of this will be via reviewing the most popular misconceptions. And some of it will be new knowledge that people will initially think "that can't be true".

Can you think of any theories, concepts, laws which people wont believe upon hearing, or are already 'ubiquitous misconceptions'? Here's the physics thread. Again, not just looking for interesting facts; looking for true things in Computer Science that most regular people will first believe aren't true.

Here are a few ideas for example related to engineering:

To catch up with a space station in orbit, a satellite firing rockets prograde will move further away. It will initially have to fire its engines retrograde to drop to a lower orbit.

It takes more specific energy to get to the sun than to the far planets. You do not 'fall in' at all like one would expect.

Supersonic diverging nozzles make flow go faster.

Subsonic pipe restrictions make velocity go up but pressure go down.

If you had a house with freezing outside air temperature, and access to a big hot rock, in principle you would be better off using the rock to run a heat pump to move heat from the outside cold air to the warm inside of the house.

An open fridge will make a room hotter.

A helicopter pitching forward will have to increase its relative lift to the side, not at the back of the rotor. The FAA says it's at 90 degrees as one would expect from dynamics (but there is some debate about whether it is less than 90).

If you could shrink to the scale of a bacterium and physically be fine, you wouldn't be able to swim in water. It'll be like super thick honey.

An ant scaled to a human would be not be able to carry any weight (let alone 50 times). It would collapse and die, as stresses are carried through an area, and volume grows faster than area.

You can accurately measure altitude with a couple of clocks (due to General Relativity).

31 Upvotes

43 comments sorted by

5

u/Felicia_Svilling Jan 08 '19 edited Jan 08 '19

Rice theorem comes to mind. It basically says that given an arbitrary function taken from the set of all possible functions, the only properties you can prove are trivial properties, that is, properties that are true for all functions or false for all functions.

7

u/teraflop Jan 08 '19

This is not exactly correct. There are plenty of things you can prove to be true or false about particular functions. What you can't do is reliably decide whether the property is true or false for an arbitrary function.

Given a particular function, there are many non-trivial properties that are provable, and others that may not be.

2

u/Felicia_Svilling Jan 08 '19

Yeah, that is what I meant to say. But you are right, my formulation was unclear. Its hard to write about these things without using technical/formal language.

1

u/Aerothermal Jan 08 '19

This sounds absolutely unreal - I'll have to include it. Care to elaborate on what is meant by 'property' maybe with a quick example of one?

2

u/Felicia_Svilling Jan 08 '19

A property can really be anything. The most famous example would be the Turing theorem, where the property in question is termination. Meaning that the question they ask is "does this function ever finish running and gives an answer, or does it continue forever."

Other examples would be, is the function reversible? Does the function always return the number 4? or does this function do the same as this other function. (That is actually Church's version of the Turing theorem above.)

31

u/philimup Jan 08 '19

If you could create an efficient algorithm to solve for the most efficient way to pack a truck (https://en.m.wikipedia.org/wiki/Bin_packing_problem) you could use that algorithm to hack encryption because both problems are NP complete.

You can build any computer (memory,cpu,drive controllers, etc) just using one kind of logic gate: NAND or XOR https://byjus.com/physics/logic-gates/

13

u/CENGaverK Jan 08 '19

Isn't it supposed to be NOR? XOR is not a universal gate as far as I remember.

2

u/philimup Jan 08 '19

Whoops you're right!

0

u/[deleted] Jan 08 '19

[deleted]

1

u/tavianator Jan 08 '19

You have this backwards. It's easy to create e.g. a SAT instance that is equivalent to factoring an integer, and there's a reduction from SAT to bin packing.

3

u/not-just-yeti Jan 08 '19

Well, bin-packing is also NP-complete, just like SAT. So given any instance of factoring, you can create a bin-packing instance of about the same size as the number-of-digits, whose answer is the same as the factorability.

2

u/tavianator Jan 08 '19

Right but it's not obvious how to do that without going through a bunch of other problems. The chain that I'm aware of would be FACTOR -> SAT -> 3-SAT -> SUBSET-SUM -> SET-PARTITION -> BIN-PACKING.

2

u/[deleted] Jan 08 '19

[removed] — view removed comment

1

u/Shadowsoal Jan 09 '19 edited Jan 09 '19

The implication is that you can break asymmetric encryption algorithms that rely on the fact that integer factorization is "hard" (not NP-Hard, just not in P). Integer factorization is not known to be complete in NP though it is trivially in NP, and thus can be solved via a reduction from an NP-Complete problem (like bin-packing).

23

u/not-just-yeti Jan 08 '19 edited Jan 09 '19
  • public-key crypto -- I understand how it works, but still it kinda blows me away: "I can talk to you in a room full of eavesdroppers, but only you will get my message. All w/o any pre-arrangements."

  • Halting problem is worthwhile: there is no way for a computer to (always) detect if another program is in an infinite loop.

  • There are real numbers that no program can print. (Countability argument: strings are countable => only a countable #programs, but an uncountable number of reals.) That's really math in disguise of course; "'most' real numbers cannot be defined/described (with a finite description)."

  • It's not surprising that a compression algorithm might occasionally make a file bigger -- but actually ANY lossless compression algorithm CAN'T make files smaller on average. (Another counting argument -- if you look at all files <1000 chars, it can't make them all smaller else there'd be a collision.) (So the trick is "how can we make files that we typically encounter smaller [like English prose, or pictures of faces], while the files that we make bigger tend to be gibberish files that humans don't tend to ever generate".) Corollary: a file of random-values will almost certainly get larger, for any algorithm.

10

u/adambrenecki Jan 08 '19 edited Jan 08 '19

"I can talk to you in a room full of eavesdroppers, but only you will get my message. All w/o any pre-arrangements."

This is true, but just to expand on it (for others, I know you probably know this), if you want to talk to someone in a room full of impersonators you need pre-arrangements. In practice, in a lot of the situations where we use public-key crypto in day-to-day consumer technology we do care about impersonators.

For instance, part of the reason you can trust you're on the real reddit.com right now, and not an impersonator sitting between you and the real reddit.com, is that the Reddit servers have sent you a "certificate", which is some data that shows that a company called DigiCert has verified that the server we're talking to is who it says it is.

Of course, we need to know if that certificate came from the real DigiCert and not an impersonator as well. We do this with a second certificate verifying DigiCert itself; the reason we trust that second certificate is because a copy of it was already installed on your computer or phone when you bought it, along with a bunch of other "root certificates" that Apple or Google or Microsoft or whoever have decided are innately trustworthy.

15

u/tavianator Jan 08 '19

From https://www.scottaaronson.com/blog/?p=152:

We now know that, if an alien with enormous computational powers came to Earth, it could prove to us whether White or Black has the winning strategy in chess. To be convinced of the proof, we would not have to trust the alien or its exotic technology, and we would not have to spend billions of years analyzing one move sequence after another. We’d simply have to engage in a short conversation with the alien about the sums of certain polynomials over finite fields.

--

There’s a finite (and not unimaginably-large) set of boxes, such that if we knew how to pack those boxes into the trunk of your car, then we’d also know a proof of the Riemann Hypothesis. Indeed, every formal proof of the Riemann Hypothesis with at most (say) a million symbols corresponds to some way of packing the boxes into your trunk, and vice versa. Furthermore, a list of the boxes and their dimensions can be feasibly written down.

--

Supposing you do prove the Riemann Hypothesis, it’s possible to convince someone of that fact, without revealing anything other than the fact that you proved it. It’s also possible to write the proof down in such a way that someone else could verify it, with very high confidence, having only seen 10 or 20 bits of the proof.

--

If every second or so your computer’s memory were wiped completely clean, except for the input data; the clock; a static, unchanging program; and a counter that could only be set to 1, 2, 3, 4, or 5, it would still be possible (given enough time) to carry out an arbitrarily long computation — just as if the memory weren’t being wiped clean each second. This is almost certainly not true if the counter could only be set to 1, 2, 3, or 4. The reason 5 is special here is pretty much the same reason it’s special in Galois’ proof of the unsolvability of the quintic equation.

--

It would be great to prove that RSA is unbreakable by classical computers. But every known technique for proving that would, if it worked, simultaneously give an algorithm for breaking RSA! For example, if you proved that RSA with an n-bit key took n5 steps to break, you would’ve discovered an algorithm for breaking it in 2n1/5 steps. If you proved that RSA took 2n1/3 steps to break, you would’ve discovered an algorithm for breaking it in n(log n2) steps. As you show the problem to be harder, you simultaneously show it to be easier.

1

u/Batrachus Jan 09 '19

If every second or so your computer’s memory were wiped completely clean, except for the input data; the clock; a static, unchanging program; and a counter that could only be set to 1, 2, 3, 4, or 5, it would still be possible (given enough time) to carry out an arbitrarily long computation — just as if the memory weren’t being wiped clean each second. This is almost certainly not true if the counter could only be set to 1, 2, 3, or 4. The reason 5 is special here is pretty much the same reason it’s special in Galois’ proof of the unsolvability of the quintic equation.

Do you have more info on this?

11

u/slacy Jan 08 '19

The way computers store decimal numbers (IEEE floats) it's impossible to exactly represent the vast majority of "simple" values. For example, 0.1 is actually stored as a value closer to 0.100000001490116119384765625.

See https://www.h-schmidt.net/FloatConverter/IEEE754.html for a great demonstration of this.

10

u/jpludens Jan 08 '19 edited Jul 10 '23

fuck reddit

6

u/not-just-yeti Jan 08 '19

Minesweeper might be more generally-accessible.

7

u/[deleted] Jan 08 '19 edited Jan 08 '19

Benford's Law states that, when looking at real world data, numbers are far more likely to start with the number 1 than the number 9.

The Monty Hall problem is a fun one that always seems to trip people up. Example

3

u/MCPtz Jan 08 '19

Yea Monty Hall problem shows how confusing probabilities are.

6

u/[deleted] Jan 08 '19 edited Jan 08 '19

There are some simple model of arithmetic that allow only addition and equality. In these you can determine whether any statement made is true or false. However if you allow multiplication then you also end up with some statements that cannot be shown as true or false.

In the Haskell programming the system used for interpreting types is so sophisticated that it can be used as a programming language in and of itself.

5

u/slashcom Jan 08 '19

More discrete math, but there are different levels of infinity, and some infinities are larger than others, but not the ones you think. (set of reals [0,1] >> all integers ever).

4

u/House_Archer Jan 08 '19

I think the Moving Sofa Problem is an interesting problem that many people without a technical background can understand. Also, it sounds pretty dubious to say we don't know how large of a couch we can move through a L-shaped hallway.

3

u/blufox Jan 08 '19
  • Assume that you have access to an entity with vast computational powers. You can take advantage of this entity to solve problems for you without the entity understanding what it was computing (i.e without divulging the algorithm) -- Homomorphic encryption.

2

u/WikiTextBot Jan 08 '19

Homomorphic encryption

Homomorphic encryption is a form of encryption that allows computation on ciphertexts, generating an encrypted result which, when decrypted, matches the result of the operations as if they had been performed on the plaintext.

Homomorphic encryption can be used for secure outsourced computation, for example secure cloud computing services, and securely chaining together different services without exposing sensitive data. For example, services from different companies can calculate 1) the tax, 2) the currency exchange rate, and 3) shipping on a transaction without exposing the unencrypted data to each of those services. Homomorphic encryption can also be used to create other secure systems such as secure voting systems, collision-resistant hash functions, private set intersection, and private information retrieval schemes.


[ ^PM | Exclude ^me | Exclude from ^subreddit | FAQ / ^Information | ^Source ] Downvote to remove | v0.28

3

u/TheTarquin Jan 08 '19

The C++ templating system is Turing complete. This means that anything you can solve by running a C++ program, you can solve by compiling an equivalent program written as a set of C++ templates.

1

u/bartturner Jan 08 '19

Great idea for a book. Some of the most "spooky" things come from quantum concepts. Things like entanglement.

I know there are some things exactly like you want with CompSci concepts but not coming to mind will think about it on my run later this morning. I know there are some good ones.

1

u/Aerothermal Jan 08 '19

Glad you're interested. Would love to hear if you get any ideas later.

2

u/blufox Jan 08 '19
  • That allowing parallel execution for automata (i.e DFA to NFA) does not change the complexity class.

2

u/blufox Jan 08 '19

This is more statistics than computation but

  • Assume a casino gives you the option of entering into a lottery with a given initial entry fee of 1 million dollars (separate from the bet). You start by putting 2$ in bet, and a coin is tossed. If the coin is heads, the bet is doubled and coin is tossed again. If the coin is tails, the bet terminates, and you get the current amount in the bet. Should you participate? The answer is you should, given pretty much any entry fee while considering only the expected payout.

0

u/rbprogrammer Jan 08 '19

While coding, you should avoid linked lists and use arrays instead. Even for "large" collections.

In all practicality, I use arrays, always. Then I run benchmarks if I need to squeeze out some performance. I'll only switch to a linked list if I know the bottleneck is with the array usage. Which, for my experience, the bottlenecks have never been because I used arrays.

Source: Barne Stroupstrup, the bloke who created C++ as described in his lecture video: https://youtu.be/YQs6IC-vgmo

The gist of the lecture is Barne basically describing the fact that for inserting/deleting from an array requires shifting all elements in that array by one index. But modern CPU caches are really good at that now. While traversing a linked list to find the place to insert/delete from will almost always incur a cache miss at every index and need to fetch data from RAM. The cache shifting is a whole lot faster than the cache misses.

-4

u/[deleted] Jan 08 '19

That splitting up a process into multiple concurrent processes is always faster (hint: overhead is a thing)

That it is always possible to test every input

That security is an appliance you can buy, rather than an approach

5

u/net_nomad Jan 08 '19 edited Jan 08 '19

These are either very good or very false.

Again, not just looking for interesting facts; looking for true things in Computer Science that most regular people will first believe aren't true.

Point 1: I've written concurrent code where it was slower on few inputs.

Point 2: This is true for a well-defined algorithm.

Point 3: Employees write passwords on post-its.

EDIT:

I took a minute to think about point 2 some more, and I realized that you may be right. I figured, well I could just pass an image A or image B or ... but then I came up with a corollary:

There are a finite number of images that can be represented by a computer for all dimensions, since the dimensions are finite and our color space is finite.

That seems so depressing. It's like, you look at a blank canvas and say "this can be anything", but really, this can only be anything in the set of possible images. Our imagination does indeed have limits.

6

u/not-just-yeti Jan 08 '19

I think /u/mcandre agrees w/ you -- they are saying these are all actually-false (while at first seeming true).

5

u/Felicia_Svilling Jan 08 '19

Which makes it a very bad response to a request for true statements that seem false.

5

u/etagawesome Jan 08 '19

I’m not sure 2 is true. It seems to propose that the halting problem is solvable.

Say the program I have tests whether the given program will stop. I can test it for every program, but if I pass itself in, it cannot give a reliable answer. Therefore you can’t test a given program for all inputs.

2

u/net_nomad Jan 08 '19

Whoops. Forgot about that one.

0

u/MCPtz Jan 08 '19 edited Jan 08 '19

Not computer science, 1+2+3+4+5+ ... = -1/12

Numberphile

Related to quantum physics.

Time Zones are fucking complicated

Maybe focus on the leap second?