instruction
stringlengths
35
29.1k
I'm wondering if this visualization makes sense with the definition of the empty string ε. I suppose it does because it doesn't seem to contradict its definition (ε is a string with no characters). If that's the case, in finite state machines with empty transitions, is it always possible to assume ε is "before" the cha...
A string s of length n is periodic if there is a string $u$ of length <= n/2 such that $s = u^ku'$, where $k$ is an integer >=2, $u^k$ is the concatenation of k copies of $u$ , and $u'$ is a prefix of u. The smallest period of $s$ is the shortest $u$ (largest $k$) for which this holds. For example, if...
I've read in Introduction to algorithms(CLRS) that Dijkstra's algorithm uses ideas similar to those of BFS? I think it really makes sense with respect to Dijkstra's algorithm with relationship to BFS when there are multiple short paths. Consider the following problem for conclusion if you can see.
I am trying to design an algorithm that computes the largest (by sum) contiguous subarray of an array of size n that uses a divide and conquer approach, but runs in linear time. The standard divide and conquer approach runs in O(nlogn) (can be found in chapter 4 of CLR) which is not what I am looking for. The following...
I'm having some difficulty trying to follow what the authors of some of the more highly recommended books on algorithms. I ran into the same problem when trying out some online courses. My goal is to prepare myself to start learning fundamental algorithms for use in low-level languages by means of understanding them ma...
i'm studying Parallel Processing , and i'm confused how can i calculate the max number of concurrency in a given dependency graph ? i know that the maximum number of concurrency is the largest number of concurrent tasks at any point of the execution , but i can't calculate it from the graph can someone explain how ca...
For example, lets consider the simplest model of cipher: the Caesar cipher. According to the theory I read the Caesar cipher consist in substitute a letter by another in considering a shift in an alphabet given by a certain number. I know that a Turing machine consist of: a tape, a header that writes or reads informati...
Routers make use of the IP address, etc to shape the traffic. So obviously they must reside in at least the Network layer. However we can also shape the traffic using tcp/udp. Routers usually have the port forwarding feature which allows them to shape the tcp/udp traffic. The IP header has a field for protocol. However...
How can we prove that radix sort correctly sorts an array of 2 elements with 2 digits each ?
$A$ and $B$ are two arrays with $n$ elements each in the range $1$ to $n^2$. 1.How to check if the elements of $A$ are distinct in $O(n)$ time and $O(n)$ space 2.How to check if $A$ and $B$ have a common element in $O(n)$ time and $O(n)$ space. Both the algorithms shouldn't use Hash sets or any other advanced data stru...
In an abstract register machine, is it possible to add two registers together without losing one of the summands, but without using a third register? That is to have a register machine that maps $(m,n)\mapsto (m,m+n)$ that only uses two registers to store $m$ and $n$. Disclaimer I am a mathematician and don't know much...
I have a problem that can be reduced to the following: There are three types of objects, A, B, and C. For each type of object, there are a number of "pickup points" and a number of "delivery points" (eg. there are five places where you can pick up object A, and five places where you must deliver it). What is the optim...
I have some questions about DFA. Can the alphabet of a DFA have one element? Can a DFA have zero states? Does a DFA require final state(s)? Thanks
On Wikipedia, I tried a number of times to find the item I needed, starting from a random page and clicking on various (non-random) hyperlinks. Every time I succeeded in finding my desired item. Is this always possible?
Consider the variable sized bin packing $$ \begin{align*}\tag{P1a}\label{P1a} & {\underset{\mathbf{ x }, \mathbf{ y }}{\text{minimize}}} & & \sum_{j=1}^nf_jy_j\\[3pt] & \text{subject to} & & \sum_{i=1}^{m} w_{i}x_{ij} \leqslant C_{j}y_j,\forall\,j\in\{1,\dots,n\}\tag{P1b}\label{P1b}\\[3pt] ...
So I have an array sized N. It is sure that array has all distinct elements. I need to find sum of all possible triplets in that array and for that i need to find all possible triplets. What i did: looping through array with three nested $for$ loops but that gives O(n^3). I want to optimise the algorithm as n is very l...
I've managed to get a VM code of a function that performs integer division. After some work, I translated it into high-level language. I know the translation I made is correct, since I was able to compile it and get the exact VM code I started with. I'm providing here the high-level pseudo-code. function int divide(...
I was reading about CRC coding from two books: Data Communication and Networking by Forouzan Page 294 Computer Network by Tanenbaum Page 188 They use following notations: $d(x)$: dataword to be sent (as a polynomial) $c(x)$: codeword sent (as a polynomial) $e(x)$: error (as a polynomial) $c(x)+e(x)$: codeword sent w...
If we have a static implementation of branch prediction and we always fetch the next sequential instruction isn't inefficient to do that if we, at a future point verify if the prediction was correctly done? We just evaluate the branch in future... Why don't we just simply verify this thing every time we encounter a bra...
Given a weighted, directed graph (V, E) may contains some negative cycles and a source node s, I would like to know for all node u, if there is a path from s to u but there is no shortest path from s to u (the distance from s to u is minus infinite). To do this I implemented a version of the Bellman-Ford algorithm: Do ...
If you have a Kleene star applying to a set of characters not in any closure, does it apply to that whole string, or just the one character it belongs to? Any examples I search don't specify. For example: (A)BB* Does this mean 1: one A followed by zero to an infinite number of BB's, or does it mean 2: one A followed by...
Maybe there is a trivial answer to my question or maybe there is not any. But I ask it here and appreciate if anyone can give me a clear answer. We know that a set of problems like minimum clique cover problem, coloring problem, vertex cover, ... are NP-hard for general graphs, but maybe polynomial-time solvable for sp...
This is a challenging question I've been trying (unsuccessfully) to solve via programming, math or both. Suppose you're given a 2D grid, whose width and height, $w$ and $h$, can each range from $1$ thru $12$ inclusive. Each cell in this grid can be in any of $k$ states (where $k$ ranges from $2$ thru $20$). The proble...
Modern papers on search indices often contain a statement that inverted indexes (posting lists) are categorically superior to signature files (bloom filters). Here are some examples from papers published in 2016: While this [signature file] technique provides a relatively low computation overhead, studies by Zobel et ...
I'm studying for my exam from Logic and Computability and we have to face following kind of examples: $$f(x) = \begin{cases} \ 1 &\text{if }\Phi_x(x+1)\!\downarrow\text{ and }x\leq50\\ \ 0 &\text{otherwise.} \end{cases}$$ Unfortunatelly I'm not really clear on how to tackle those. $\Phi_x$ is the $x$-...
The fact that square root of 2, pi etc are computable numbers only means they can be approximated to arbitrary nth decimal, so these TM that approximate them do not count since they halt after printing out the nth digits. I would appreciate a definitive answer and reasoning. If the answer is NO, which I suspect, is the...
Is there a single-word term for "the number of edges in a graph"? Something along the lines of "arity" for function parameters.
For example: S -> Sa Let's say the alphabet is {a} and that is the ONLY production rule of the grammar. Is that grammar valid regular grammar ? Or valid grammar at all? Can it be a context free grammar, but not a regular one ? As far as I can think... a grammar tree built on it will never end, it will never have only l...
The Art of Computer Programming by Donald Knuth is kind of styled like a collegiate text with exercises at the end of each chapter. However, the material is not in any recognizable form for a standard curriculum, so it is hard to imagine the text actually being used for a particular course. Also, the problems are quite...
If not can we draw any conclusion about the newly fromed language, the language that represents the union between a regular language and a non regular language (not context free but a truly random language ).
How do time and space complexity compare for unidirectional bfs and bi-directional bfs in worst and practical case such as a social network?
I have two rigid 3D objects, where one of the object, say A, slide/glide on the other object, say B. Now what I want to do is to find all possible valid configuration/pose of A on B. How can I say this using math formula? After that, how can I write that in algorithmic way? Thanks in advance.
I'm trying to find an efficient algorithm that will find me the minimum spanning tree of an undirected, weighted graph of this particular form: My idea was a recursive solution: Suppose the algorithm recieve the graph with n as a parameter, if n==2 then: take the lower cost path between vo-->v1-->v2 and v0-->v2 if...
In a random key genetic algorithm1, the chromosomes consist in a sequence of real numbers (initially randomly generated) in the interval $[0,1]$. I've been told by my teacher that in these kinds of genetic algorithms, one cannot encode the solution directly into the chromosomes, as that would generate "infinitely larg...
I understand the relation between max flow and min cut, however I made this (simplified) graph, and I cant figure out why max flow seems to be different from my min cut. Im probably overlooking something simple, but I've been staring at this for 10 minutes now... Can anyone explain what Im missing?
Let's say we have a pipeline with 20 stages. If the testing for the jump condition is done at stage 14 and we have a wrong prediction, then the instructions processed in those 14 stages, that shouldn't have been processed due to the wrong prediction made the processor lose 14 cycles. We know that the jump instruction e...
Im studying operating systems and i found an exercise that i cant solve. It asks to compute the memory space needed for a two level page table. The logical addresses are 32 bit, Page size is 4KB and the page entry size is 4 bytes. from the page size i found out that the offset is 12bits from the 32 of the memory add...
Having the function: $$f(y) = \begin{cases} \ 1 &\text{if }\forall n \Phi_y(n)=n\lor \Phi_y(n) \!\uparrow\\ \ 0 &\text{otherwise.} \end{cases}$$ By the rule of thumb it should not be computable. How to prove it formally? If it's computable, I assumed a function like this exists: $$g(y) = \begin{cases}...
The problem statement: Append the length of the string to the string while the length is less than or equal to 10 Input: "a" -> Output: "a12345678910" Input: "abcde" -> Output: "abcde5678910" The solution of the problem would require lesser time for a larger input. What should be the time complexity of this?
Is it possible to use the theorem of Rice to prove that the emptiness problem is undecidable? With the emptiness problem I mean the question if a certain machine doens't accept any input ? If you can prove it using the theorem of Rice, can you also prove the acceptance problem (if a certain machine will accept a certai...
I am a bit lost calculating how much segments will the system handle in a memory segmented system (without virtual memory). The problem says that the system has a word length of 32 bits and the address are 6 hexadecimal numbers, 3 of them are the segment identifier. We have a segment size of 4KiB I tought this: If the ...
Suppose I am given the following problem (the source is here): Disconnect two nodes in a graph by removing minimum number of edges. I would apply Karger's min-cut algorithm. But how can I guarantee that I'll finally find the min-cut? Karger's algorithm is a randomized algorithm. If the probability of success is 1/p, ...
Given Fibonacci's Nonlinear Feedback Shift Register output, how can I recover the description (nonlinear feedback function and current seed)? The clean output of consecutive and unmodified is large and the generator is available to ask for next values. The source code of PRNG is not available, the seed is unknown. For ...
Let's say a program reads the addresses 0x00 cd 10 54and0x00 cd 10 50. The tag size and and index size added are just 4 bits, the cache has 8 blocks to 8 Bytes and thus 4 together make a set. The CPU is 32 bit. Then above addresses would point to: 0x00 cd 10 50: ca 01 6b 7f ff 00 10 ee ff 41 45 e8 00 a7 56 00 and wo...
Suppose I'm given an undirected graph and two nodes: v and u. If I understand Karger's algorithm correctly, it's used to find a minimum cut of a graph, not the ("the" because there is only one for any given graph) minimum cut such that v is in one part of graph and u is in the other part. Why don't we simply find the ...
We know that a set of problems like minimum clique cover problem, coloring problem, vertex cover, ... are NP-hard for general graphs, but may be polynomial-time solvable for some classes of specific graphs, such as perfect graphs. In my case, I have a specific class of graphs defined as follows. Define $f : \mathbb{N}...
I just want to know that whether there is an algorithm better than the Greedy Algorithm for Dominating set. I know that Greedy gives $O(\log(\Delta))-approx$ and we can not do something better than $log \Delta$ for dominating set unless P=NP. But I came across this paper for $k-$ set cover which gives some improvement ...
Im studying some properties of Boolean Algebra and found the Operation Linkage Laws. Im not able to understand how this laws are possible, and the remark on the proof is not really clear for me. Can any one show me the proofs of this laws or share any resources where I can find a more detailed proof of the laws?
I have a an assignment to make a classifier for hand-written numbers with a limited data set of 500 samples. I am currently using python, I tried sklearn SVC with linear classifier and I got an accuracy of about 80%. I also tried KNN with 13 neighbors and got a max of 81% accuracy. I need to get to at least 90% accurac...
A spanning tree chosen randomly from among all the spanning trees with equal probability is called a uniform spanning tree. A model for generating spanning trees randomly but not uniformly is the random minimum spanning tree. In this model, the edges of the graph are assigned random weights and then the minimum spanni...
I want to try and make a program where I remove the punctuation from a block of text and it then inputs it in the correct places. I have started with a simpler element of just using text and spaces, no commas, full stops etc. The first angle I have been taking this is with machine learning, neural networks and simpler ...
In a book dedicated to distributed algorithms, I found the following definition - potential causality diagram is consistent with happens before diagram if potential causality relation between system events is a subset of happens-before relation. So far so good. But then I have read following claim potential causality d...
Given a directed multigraph with $n$ groups of edges and without cycles, can we find the path that minimizes the largest of the sum of weights of each group? All weights are non-negative integers in the range 0..30,000. Let me put an example for $n=2$ groups to understand it better: If we were to find the shortest pa...
Let G = (V, E) be a graph which is hierarchical in the sense that its vertices are arranged in levels/layers (say 1 to k) and an edge can only be from a vertex at level i to a vertex at level i+1. Vertices at level 1 and k are called the roots and the leaves, respectively. The problem is to find all descendant leaves o...
How can I show that the following language is neither semi decidable nor co-semi decidable without using Rice's Theorem? Further for the following language, how would I show that it IS co-semi decidable but not decidable for |Σ| > 1
I'm reading a theorem about existence of a simple set. The definition of an immune set can be found from here A set ${\displaystyle I\subseteq \mathbb {N} }$ is called immune if ${\displaystyle I}$ is infinite, but for every index ${\displaystyle e}$, we have ${\displaystyle W_{e}{\text{ infinite}}\implies W_{e}\not \s...
Their are many rules of logics, predicate calculus, inferences and syllogisms which haunt me always. It feels better when I find some sensible name to particular rule which also gives me intuition about the meaning of the rule. Recently I came across some simple tautologies: $((x \rightarrow y)\wedge(x \rightarrow \ne...
Good day. In an undirected graph, if edge(x,y) is in the graph, (y,x) is also there. Considering that I use adjacency lists to implement my graph, should insert(graph,x,y) do nothing if graph already contains (y,x)? Thank you.
From pg. 64 of Lambda Calculus and Combinators, the author formally and informally defines the notion of "decidability": 1 Formal Definition Definition 5.4 A pair of sets $\mathcal{A}$, $\mathcal{B}$ of natural numbers is called recursively separable iff there is a recursive total function $\phi$ whose only output-v...
I'm studying the Principal Type (PT) Algorithm in Basic Simple Type Theory by J. Roger Hindley. One step to find the PT of a term is the Unification of types. The Robinson's Unification Algorithm uses a comparison procedure like as follow: Comparison Procedure Given a pair $(u, v)$ of types, write $u$ and $v$ as symbol...
I've read what a Turing machine and a UTM are, but I don't get the difference. What can a UTM do which a normal Turing machine can not?
Consider the following floating point Representation Mantissa is pure fraction in signed magnitude form . What is the representation of the binary number 1111.1111 $\times 2^{2} $ in hexadecimal without Normalization . My Approach bias = 64 $(-1)^{S} (1.M)_{2} \times 2^{\text{E-bias}}$ This is normalized Representat...
I've got a microprocessor and want to quickly identify the settings of my application (stored in some eeprom regions) via a fingerprint instead of having to dump the entire memory every time. So I was going to compute a 32-bit hash from the few kbytes, but I am not sure which algorithm to use. It doesn't need to be cry...
I am lost on this and we a restricted to using flex/lex regular expression. I can easily do this with a lookahead predicate but i'm not allowed to use those. The does not end in (0) part is simple enough to do, it the other part(must contain at least one (0), one (1) and one (2) is stumping me. Any help would be greatl...
We know that regular expressions (RE) are implemented with finite automata (FA). In some language (like JavaScript) in RE there are features like 'capturing parenthesis' with 'backreferences': https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#special-capturing-parentheses (x) Matches 'x'...
I know it has been shown that RNNs are Turing complete. So for any Turing machine, there exists a configuration of a RNN that is equivalent to it. But I'm wondering, is all those configuration reachable through learning/training? i.e. For any Turing machine, does there exist a data set and a training process, which wil...
Can a context-free grammar include "dead states" from an automaton, such as $$G = \big(\{a, b, c\}, \{A, B, C\}, \{A\to aB, B\to b, B\to C, C\to cC\}, A\big)\,?$$ The production rules $B\to C$ and $C\to cC$ will loop forever and never generate a word. Is this allowed or MUST production rules end with an terminal at som...
This is for homework so feel free to not give me an answer but steer me in the right direction. The problem states: Prove that $n^{1000000} = O(1.000001^n)$ using the formal definition of Big-O. The definition of Big-O is: $\hspace{2cm}T(n)=O(f(n)):\,\exists\;c\gt0\;$ and $\;n_0\ge0,\;$ such that $\;T(n)\le c\cdot ...
I have followed some basic courses in Machine Learning at Computer Science Faculties, but I have found, and correct me if I am wrong, different perspectives or ways to tackle things down depending on the background of a lecturer. For example: A statistician would use inferential statistics to tackle some subjects, suc...
Suppose I train a random forests classifier on a monotone training set. Is the resulting classifier guaranteed to be a monotone function? Suppose I apply the ID3 algorithm (the greedy algorithm) to learn a decision tree on a monotone training set. Is the resulting decision tree guaranteed to be a monotone function? ...
The problem and solution of interest is described here: What does > mean in this TAOCP solution? Can anyone explain following points in that solution: How exactly we can build (x[i], x[i+2]) for 1 <= i <= N-2 ? What exactly means "merge G with it"? Provide exact algorithm for merging these two files. How steps 1-4 ar...
Is it proven that quantum computation is no better at solving NP complete problems than classical computation or it's just believed?
Currently I am taking a computational geometry course and I have learnt that: Orientation is formally defined as the sign of the determinant of the points given in homoge- neous coordinates. For example, in the plane, we have Orient(p,q,r) = determinant of the matrix: 1 ax ay 1 bx by 1 cx cy What is the mathematical...
The question is right there above.
If I have two matrices $A$ and $B$, of dimensions $1000\times2$ and $2\times1000$, respectively, and want to compute $(AB)^{5000}$, it's more efficient to first rewrite the expression as $A(BA)^{4999}B$ and only then evaluate numerically, because $AB$ is of dimension $1000\times1000$ but $BA$ is of dimension $2\times2$...
I am aware that we can do set operations on them, and sets are fields. Are regular languages also mathematical fields?
To begin with: what I know of computer science is what friends have told me and what I've read on Wikipedia. Please correct me if I'm using some term wrongly, or if there is something I can clarify. Let's say I have a directed graph. I want my computer to look at it, and see whether x > y, y > x, or if the relationship...
I am reviewing for a test, and i am stuck on this question. the problem is to show it is hard to approximate (for any constant) the following problem: given m CNF formulas f1,..,fm over variables x1,..,xn find the assignment which maximizes the number of satisfied formulas. I believe I need to reduce this problem to so...
$T(n) = 4T(\sqrt n) + n$ First I substitute n = $2^k$: $T(2^k) = 4T(2^{k/2}) + 2^k$ Now I rename the above as follows: $S(k)=4S(k/2) + 2^k$ Now if I try to use tree method on this in the following way: Work done at Level 1 = $2^k$ Work done at Level 2 = $2^{k/2} * 4$ Work done at Level 3 = $2^{k/4} * 16$ and so on. We ...
In the partition problem we want to partition a set $S$ of positive integers into two sets $S_{1}$ and $S_{2}$ such that the sum of the integers in the two sets is the same. The optimization version of the problem is NP-Hard, in the following wikipedia page an 7/6 approximation algorithm is described. In that algorithm...
I am currently studying hash tables in an introductory course to computer science. I was taught that hash table is a data structure that associates a key to an index (a hash table) and then to the value associated to the key. I don't understand why the hash function doesn't directly associate the key to the value
I have a set $S$ of $N$ elements, and a set $\Sigma$ of $N$ subsets of $S$: $\sigma_0, \ldots, \sigma_{N - 1} \subset S$, each with $W \ll N$ elements. Subsets can overlap partially or totally. For a given $K < N$ (but $K \gg W$), I want to determine the subset $X_K \subset N$ so that: $X_K$ has $K$ elements. $X_K$ i...
Koopman, P., & Chakravarty, T. (2004, June). Cyclic redundancy code (CRC) polynomial selection for embedded networks. In Dependable Systems and Networks, 2004 International Conference on (pp. 145-154). IEEE. In this paper authors compare performance of different CRC polynomials in terms of minimum Hamming distance of ...
We are doing a research on multi-document (one document max 100 words) text summarization. We are looking into abstractive text summarization methods. I need following things to be clarified. Please explain what exactly in Neural attention model. How can the Neural attention model be used for abstractive text summariz...
The wikipedia page Actor Model and Process Calculi History, presents the following claim: The semantics [of CSP] provided bounded nondeterminism unlike the Actor model with unbounded nondeterminism. However, with bounded nondeterminism is [sic] impossible for a server to guarantee service to its clients, i.e., a clien...
Given the alphabet $Λ = \{a, b, c\}$, i need to write a grammar for this language: $$L=\{α \mid α∈Λ^+ ∧ aaa \notin α\}$$ I know that in my language the sequence of three consecutive $a$ cannot occur in any string, but how do I make a grammar of it? I'd need the thinking behind the construction of the grammar (like wha...
I have a file with a list of non-overlapping rectangles covering the entire space (they are adjacent). I would like to plot efficiently the graph edges that connect each rectangle center point with the adjacents rectangle center points. Which is the best data structure to use to load the rectangle list? Which is the be...
I'm looking for a problem that allows me to generate random instances which: Take arbitrary time to compute (i.e., I can generate an instance that I know would take at least 10 days to solve in an Intel I7); Is inherently sequential (no matter how many processors you throw at it, it won't be solved faster than 10 days...
I'm having a bit of trouble determining what language the following non-deterministic finite state automaton accepts. Assuming the alphabet of this machine is ${a, b}$, I deduced that this automaton would accept words of the following characteristic: a word $w$ would be accepted if $w$ had zero or more $a$'s or $b$'s ...
Given the alphabet $Λ = \{a, b\}$ and this non-regular language: $$L=\{aba^nb^ma^n|n,m>0\}$$ what's the best way to generate the grammar? Every string has to start with $ab$, then we have $aba$ and this part has to have the same number of $a$. In words that is clear, but I'm stuck; should I first consider the fixed pa...
So I'm assigned a task that involves formulating a quite complex recursion of several variables using 'mathematical notation'. The assignment is quite sparse when it comes to additional information, but below is the code anyway; int partDist(String w1, String w2, int w1len, int w2len) { if (w1len == 0) return w2len; ...
Acyclic DFAs recognize finite languages. For more info, see this Wikipedia page : https://en.wikipedia.org/wiki/Deterministic_acyclic_finite_state_automaton To explain that the product of two DFAs $A$ and $B$ could lead to a result of size $O(|A|.|B|)$ in the worst case, most examples make use of DFAs containing cycles...
I am trying to complete CS50's hacker edition pset3, where you have to make a program that will solve the game of eight or fifteen from its current state, this must be written in C. https://en.wikipedia.org/wiki/15_puzzle I first tried an approach of straight going for the step that get's you closest to the goal, but f...
I have a modified 8 puzzle problem such that each transition's cost is associated with the number of the piece that is moved. So, for example, if piece "3" is moved, the move would cost 3 units. I am trying to find an admissible heuristic that dominates the Manhattan distance, but am having trouble deriving one. My ...
Prove that set of rational numbers less than given computable real number is decidable This problem was in my exam yesterday, but I was not able to solve it. However I still want to give it another try. Same problem can be stated in this way: Construct an algorithm, which answers the question: Is our given ration...
I am working on an NP-Hard problem. The state-of-the-art algorithm for my problem runs in O(3^n) time using dynamic programming approach. I changed the way the dynamic program works for my problem and it reduces the time complexity to O(n2^n). But, the main problem with my approach is the optimal result. More than 95% ...
Say I have a language over the alphabet {x,y,(,)} . The language's rules are: any string over that alphabet with balanced parentheses. Clearly x(), (xy) , ()()xxx, ((xx)) are accepted. BUT My question is, is a string with no parentheses considered as having balanced parentheses? For example are: y, xxyy, xyxyxxx...
Is it possible to construct an infinite increasing sequence of random naturals (in Kolmogorov sense) that is a subsequence of another sequence? Ok, in general I suppose not, e.g. for prime numbers. But: I want to prove that sequence $\{ax+b\}_{x\in\mathbb{N}}$ contains an infinite subsequence of random numbers. (This i...
The language on the alphabet $\{a,b\}$ is $$L=\{ab^nab^{n+1} |n>0\}$$ so i have to take a string w = xyz: what's the best string to choose such that $|w| > n$? and then what about the division? like $ w=ab^nab^{n+1}$ is a correct option? Then how can I divide this into three pieces? My attempt: $ x = ab^s $ with $ 0 ≤...
I read Alan Turing's paper "Computing Machinery and Intelligence" a few times and it isn't clear what exactly is he arguing for. He proposes the imitation game, but doesn't form a concrete conclusion. It seems like the current consensus is that passing the Turing test doesn't signify human-like intelligence or thinking...