Questions tagged [computability]

83 questions
4
votes
2 answers

Are there any Recursively Enumerable problems that are not RE-hard?

The computability class that I'm taking explains several languages that are in RE - REC (recursively enumerable but not recursive, i.e. solvable by a non-halting turing machine). It first shows how one of them (L_d, language of turing machines…
4
votes
2 answers

Can a Turing machine perform Quicksort?

As far as I know, a Turing machine can be made to execute loops or iterations of instructions encoded on a Tape. This can be done by identifying Line separators and making the Turing machine go back until a specific count of Line separators is…
4
votes
2 answers

Is it possible to create an algorithm which generates an autogram?

An autogram is a sentence which describes the characters it contains, usually enumerating each letter of the alphabet, but possibly also the punctuation it contains. Here is the example given in the wiki page. This sentence employs two a’s, two…
Lou
  • 2,200
  • 2
  • 33
  • 66
3
votes
3 answers

Security of Exclusive-OR (XOR) encryption

XOR encryption is known to be quite weak. But how weak is it if I have a key that is made up of multiple keys of different (ideally prime) lengths which are combined to make a longer key. eg I have a text keys of length 5, 9 and 11. If I just apply…
El Ronnoco
  • 11,753
  • 5
  • 38
  • 65
3
votes
2 answers

To prove something is NP-hard, why do you need to reduce to it from an NP-complete?

From wikipedia: A problem H is NP-hard if and only if there is an NP-complete problem L that is polynomial time Turing-reducible to H (i.e., L ≤ TH). Why does the problem(call it W) being reduced from need to be NP-complete? Why can't it just…
UnknownGuy
  • 213
  • 4
  • 9
3
votes
1 answer

HaltingProblem in Agda?

I am working through a paper trying to implement their Haskell code in Agda. They want to formulate the halting problem by saying let bot be a program such that for any data type a: bot :: a bot = bot They go on to define data S = T so the…
2
votes
2 answers

Template Metaprogramming: Primitive Recursive?

In this article, the writer asserts: ...the program did show that the template instantiation mechanism is a primitive recursive language that can perform nontrivial computations at compile time. I found this rather interesting, as I help to teach…
2
votes
1 answer

Make the assumption that P = NP

Suppose P = NP, would that mean that Hamiltonian-Cycle is no longer NP-Hard? Hamiltonian-Cycle is a language where a given graph G contains a Ham-Cycle.
user7821248
2
votes
2 answers

Why is chess, checkers, Go, etc. in EXP but conjectured to be in NP?

If I tell you the moves for a game of chess and declare who wins, why can't it be checked in polynomial time if the winner does really win? This would make it an NP problem from my understanding.
2
votes
2 answers

Can rebol parse function be able to create rules for parsing css2 / css3 fully?

Are there limitation to rebol parse function power ? Would it be capable of parsing the whole css2 / css 3 spec or will it encounter theorical impossibility to form some rules ? Update after HostileFork answer: I mean in regexp I think it would be…
Rebol Tutorial
  • 2,738
  • 2
  • 25
  • 36
2
votes
1 answer

Does there exist an algorithm that can solve Vim Golf problems

Is it possible to create an algorithm to solve Vim-golf problems? For those not familiar with what that is, you are given two different blocks of text, and must transform the first block into the second using the lowest possible number of keystrokes…
Andrew
  • 6,295
  • 11
  • 56
  • 95
2
votes
1 answer

NFA Acceptance Confusion

I'm on a senior level theory course, majoring in Computer Science, and was tasked with designing an NFA. If I'm not mistaken, an NFA accepts an input if any path within the NFA can take the string and get to an accepting state. I understand and can…
pcd13
  • 51
  • 3
2
votes
4 answers

Complex behavior generated by simple computation

Stephen Wolfram gave a fascinating talk at TED about his work with Mathematica and Wolfram Alpha. Amongst other things, he pointed out how very simple computations can yield extremely complex behaviors. (He goes on to discuss his ambition for…
Yuval Adam
  • 161,610
  • 92
  • 305
  • 395
1
vote
2 answers

program to reproduce itself and be useful -- not a quine

I have a program which performs a useful task. Now I want to produce the plain-text source code when the compiled executable runs, in addition to performing the original task. This is not a quine, but is probably related. This capability would be…
Ben
  • 563
  • 1
  • 5
  • 12
1
vote
1 answer

Can we assure a strictly decreasing function is computable?

I've been assigned to solve an exercise that questions the following: Suppose a function f: N->N that is strictly decreasing. Can we assure f is computable? So far I've found that all non-increasing functions are computable but this isn't an valid…
Pol
  • 13
  • 3