256
you are viewing a single comment's thread
view the rest of the comments
[-] uniqueid198x@lemmy.dbzer0.com 5 points 1 year ago* (last edited 1 year ago)

in computer science, we talk about a mathematical construct called a machine. Different kinds of machines can solve different problems, and the turing machine is the most powerful. It can solve any problem that can be solved by a machine.

Turing machines operate one step at a time, with each step taking the same amount of time. The total number of steps it takes to solve a problem is the time, of that machine.

Some problems have a fixed number of inputs, like "list all the states". These machines have a fixed time. We call this constant time.

Others can have a variable number of inputs, like add up an arbitrary list of numbers. The longer the list is, the longer this takes.

An interesting, and important question is, how fast does the time of a machine go up as we add more inputs?

There are to major groups: the machines were the time goes up in a polynomial way (called P) and the ones were it goes up faster (called NP for non-polynomial). This means, for some machines, you can describe the time with an equation like time=inputs^n where n is any number.

A conjecture is that actually, all problems (that can be solved ) have a machine that can do in P time, thus all NP problems are actually P problems if we find the right machine.

This is important because much of our secret codes and other inportant things that we use today rely on those NP problems, which are really hard to solve. But if it turns out that they are P problems after all, there can be easy solutions.

this post was submitted on 10 Aug 2023
256 points (92.1% liked)

Comic Strips

12637 readers
3890 users here now

Comic Strips is a community for those who love comic stories.

The rules are simple:

Web of links

founded 1 year ago
MODERATORS