instruction stringlengths 35 29.1k |
|---|
I am attempting the question below:
Assume a set of processes $P_1, P_2, P_3$ and $P_4$ arrive at different times in the ready queue. The table below shows the burst time, the priority (smallest priority number implies highest priority) and arrival time for each of the processes.
\begin{array}{|c|c|c|c|}
\hline
Proc... |
I learned in class that perceptrons cannot simulate the XOR operation. My professor told me that one fix was to left the points onto a higher dimensional space. That is pretty obvious, you just use the feature $x_1x_2$. He also said that you can use multiple weighted hyperplanes and nonlinear functions to do so. I'm no... |
I had this question in an interview recently. I was unable to answer this question and would really like to start a discussion on how to approach this problem and get the most efficient solution.
You have this matrix. You want to print out how many islands are in the matrix. Assume water is surrounding everything outsi... |
In modern computer architecture, pipeline has stage that access memory for normal data and instruction in parallel.
But datas and instructions are usually in same memory, and their access address is different.
But how pipelined cpu can access them in parallel? Are the memory has two address port for read data and ins... |
I have an example from a textbook using a language $L = \{ a^nb^ma^n : m, n \ge 0, n \ge m \}$.
We can use pumping theorem to show that $L$ is not context-free. If it were, then there would exist some $k$ such that any string $w$, where $|w| \ge k$, must satisfy the conditions of the theorem. We show one string $w$ th... |
This is tangentially related to a question I asked on the math stackexchange.
I read in a proof that if
$$
\begin{align*}
L_1 &= \{w ∈ \{a, b, c\}^* : \text{$w$ has the same number of $a$, $b$, and $c$} \}, \\
R &= L(a^* b^* c^*),
\end{align*}
$$
then $L ∩ R = \{a^nb^nc^n: n ≥ 0\}$.
Now unless I'm fundamentally misund... |
I have done some reading on these two types of PDA and, to my layman eye, it looks like one simply 'wraps' an empty stack PDA with some extra transitions to create the final state PDA. Since these are empty string transitions and are just pushing/popping the stack bottom marker, does the set of languages a final state ... |
I have a file containing ordered binary numbers from $0$ to $2^n - 1$:
0000000000
0000000001
0000000010
0000000011
0000000100
...
1111111111
7z did not compress this file very efficiently (for n = 20, 22 MB were compressed to 300 kB).
Are there algorithms that can recognize very simple structure of data and compress f... |
I am trying to show that the following problem is P-complete with respect to LOGSPACE reductions: given a Turing machine $M^*$, an input $x$ for that machine, and a number $t$ in unary, does $M^*$ accept $x$ in $t$ steps?
To do that I want to compute an upper bound on the time complexity of some TM $M$ in P on input $x... |
Hello I need help with xy xor z, do I do the logic AND first or the XOR, no parenthesis. Thank You
|
If I have a Global miss rate of all caches of a total of 5.41% and the miss rate of a single level cache of 9.13%, how can I effectively calculate how much the second level cache miss rate need to be?
I found this where it says that the Local miss rate equals misses in a cache divided by the total number of memory acce... |
I just came across the maximum zigzag sequence problem, defined as follows:
A zigzag sequence is defined as a sequence of numbers such that the difference between two consecutive numbers alternates between positive and negative.
Given a an array of N integer number, find the length of the longest zigzag subsequence. A... |
How do we differentiate these classes of problems?
|
A language $L$ is deterministic context-free if and only if there is a
deterministic push-down automaton M such that $L = L(M)$.
According to the answer key of this quiz, the above statement is false. Which is odd to me, if a context free language is one that can be defined by a pushdown automata, would a determini... |
This was a solved example given in my textbook. When I tried to solve this, I got a different TM that was given as the solution. I tried running a sample string through my TM, and somehow got the correct answer.
Still the answers dont match. Please let me know if there isvsomething I've missed.
This may sound a simp... |
This is a problem that I think is a reduction from the halting problem. I have on two separate practice exams statements that,
Given a Turing machine T and a string w, to determine whether T will halt when started on input w.
and
Given a Turing machine T and a string w, to determine whether T will halt when started ... |
I recently came to see that this library sparselsh uses random projection to perform locally sensitive hashing of documents.
The proof is such that based on cosine similarity to the vector. In other words if the dot product of a random projection vector and a feature vector > 0, it would mean that the angle is obtuse ... |
What are the benefits and cons of using an assembler, rather than programming directly into hexadecimal or binary code?
|
Suppose $y=f(x,p)$ while $x$ and $y$ are variables and $p$ is the parameter (all in vector form), and $f$ is an explicit nonlinear function. We have:
$$y_1^{(1)} = f(x_1^{(1)},p_1), y_1^{(2)} = f(x_1^{(2)},p_1), ..., y_1^{(n_1)} = f(x_1^{(n_1)},p_1)$$
$$y_2^{(1)} = f(x_2^{(1)},p_2), y_2^{(2)} = f(x_2^{(2)},p_2), ..., y... |
First - I've seen and thoroughly read all the similar questions. None of them solves my problem. I've read them all, and seen lectures and asked my Prof but no one was able to answer. They all at most give a mathematical answer, but can't give a real example.
In CLRS 3ed pg 155 we have "The running time of MAX-HEAPIFY ... |
Show that, given a tree node a, the time complexity of calling k times to Successor() is $O(k+h)$, where $h$ is the tree height.
I understand that we're passing by at least $k$ nodes, but how I can prove that in all these calls we do not iterate over the tree height (at most)?
|
I am learning about Karatsuba-Ofman multiplication. I don't quite understand how to multiply two numbers with odd length.
Let's take two 3-digit numbers $a = 234; b = 857$ with base $B = 10$ and length $n=3$.
The first step is to split split $a$ and $b$ at position $n/2$. However, since $n=3$ where do I split it? Does ... |
I starting to learn about artificial neural network.
I already did some simple things for classification, with different hidden layer.
I would like to know :
Is there a way to create "communication" (synapse) between neurons of the same layer ?
If yes how will work the back-propagation ?
Thanks a lot
|
Im writing an algorithm to determine highly composited numbers.
But it's very unefficient with $\Omega(f(n)) = n³$.
Does someone know how i can make my code more efficient. Is my approach ok?
Here is my code:
import tools.Tools;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.TreeMap;
public... |
In this question it's stated that dynamic array wasted space is O(n). Here is the explanation why:
Because, when a dynamic array is full, its size is increased by some
factor α. This means that, immediately after growing, a dynamic array
holding n items has size about nαnα, so the amount of wasted space is
n(α−1... |
I am at a loss when it comes to understanding how Grover's Algorithm gives any useful information. Suppose we have a 4-qubit states (|0⟩ to |15⟩), and we are searching for the state |3⟩. The oracle would thus be
O=I−2|3⟩⟨3|
And then, at the end, after all the amplitude amplification steps, we would get the state |3⟩ w... |
Given two strings $x$, $y$, both of length $n$, what is the probability that $K(x|y,n)=K(x|n)$ ? (Bounds on this probability would be very interesting too). Here $K$ is Kolmogorov complexity, $x$ and $y$ are sampled from uniform probability distribution over strings of length $n$, i.e. $P(x)=\frac{1}{2^n}$ for all $x$.... |
As part of an assignment I have to write a PRNG using a sin (or any other trigonometric function) and a saw function which I'm struggling a bit with. So how would you find a good saw function with about equal distribution?
This is what it is supposed to look like:
There are two functions I've got now,
y=(seed/1000*sta... |
I'm having a hard time finding any prominent applications of Petri nets in the industry. Can you name some, or are Petri nets still just an academic curiosity?
|
It is possible to replace the fully-connected layers of a CNN with convolutional layers, making it fully convolutional. Fully-convolutional networks (FCNs) can be applied to inputs of various sizes, whereas a network involving fully-connected layers can't. Still, for the input size the network was designed for (e.g. 22... |
I'm currently doing an exercise that asks to prove that Standard-Heapsort requires at fewest $\frac{1}{8} n \log(n) - O(n)$ comparisons, in its best case.
In its average case, Heapsort only requires $2n\log(n) - O(n)$ comparisons, although I don't know how to prove the best case scenario.
Can someone possibly hint me w... |
How can this be? I don't think it is actually possible for a non-regular language to be a subset of a regular language. What examples are there where this is true?
|
TL;DR Our mind is a superior meta-machine learning algorithm, it can figure out tradeoffs in a much more general case than any machine learning algorithm we have. Furthermore, its Kolmogorov complexity is 4MB or less, and thus should be fairly easy to discover. However, despite our best efforts, no algorithm we've disc... |
If a binary tree is both a max-heap and an AVL tree, what is its largest possible number of nodes, assuming all keys are different?
|
I recently encountered a problem which goes like this :
A student is given N number of questions and T time in total. Each question requires different time to complete and carries different marks. The problem asks to find the maximum marks the student can get by attempting some of the N questions within T time (Assumin... |
Prove that $L\in NC^1$ iff there exists a sequence of poly sized formulas that decides $L$.
I managed to prove the $(\impliedby)$ and I want to prove $(\implies)$.
I feel that we need to take the boolean circuit and duplicate the sub-circuits of $fan-out\gt 1$ into exact circuits but with $fan-out = 1$. I fail to argu... |
Given a 2HornSAT problem. Its possible in linear time to find the minimum solution to the problem i.e. that has minimum number of variables set to 1 in the solution.
Now let us consider another variant of the problem:
Given a positive integer K, is there a solution to the 2HornSAT such that exactly K variables are set ... |
I have a complete graph G which is directed. In essence, a node is connected to all other nodes in the graph. Also, for every pair of nodes, say v and u, there exists two weighted edges one from u tov, and another from v to u.
Under such a configuration for the graph, if I use prim's algorithm, will the algorithm give ... |
I'm having problems trying to understand the concept of loop invariants.
I have the following code, where M and N are predefined constants.
a = 0
b = M
c = 1
while M - c * N >= 0:
a = c
c = c + 1
b = M - a * N
print(a, b)
I have figured out this code is actually a division algorithm, where in the end prints out ... |
I'm trying to solve the following problem.
Input
positive integers $v$, $b$ and $\ell$. ($\ell\leq v\leq b\ell$.)
Output
A list $S_1, \dots, S_k$ of all possible integer multisets (a generalization of the concept of a set that, unlike a set, allows multiple instances of the multiset's elements), such that each $S_i$ ... |
I am somewhat puzzled by the definition of the inverse of the Ackermann function: The normal Ackermann function $A$ can be used to define a function from $\mathbb{N} \to \mathbb{N}$ via $A(n, n)$. The inverse of this function, denoted by $\alpha$, is known as the inverse Ackermann function.
My problem is: Only bijectiv... |
Given a tree, where each node holds a unique number, each of these numbers is represented in $O(log\,n)$ bits. Describe an algorithm to calculate the greatest number $K$ there is.
I would like to get help with understanding the following :
"The number of all bits in all messages needs to be $O(K\times n \,log\,n)$ but... |
Basically, the problem is that I always thought that the (unnormalized) $k$th order empirical entropy $n\cdot H_k(x)$ (see "Backround" at the end of this post for more information) for a given string $x$ of length $n$ equals the entropy of the empirical distribution on the set of all words of length $n$ (the conditiona... |
Is it the case that every problem computable by a Turing Machine can also be represented by some kind of equivalent n-tape Turing Machine which one has only one state? (We can assume that the accept and reject states are implicit here. If that bothers you, you may think about this as a question about 3-state machines ... |
I've understood that $L$-uniformity means that there's a TM that can output the description of $C_n$ in $O(\log n)$ space. Now, that seems odd to me since the description itself (as far as I understand) must be a $O(n)$. I'd be glad for clarification.
Also, in that context: What does $L$-uniform $NC^k$ means?
Thanks!
|
I have a homework assignment in which I need to write an implementation of Gauss-Jordan with complete pivoting. Complete pivoting is a modification to the basic Gauss-Jordan algorithm in which rows and columns are swapped around pivots. This is done to minimize the numerical errors by avoiding operations with small f... |
I'm a high school student and I'm passionate about everything language related - lexers, parsers, compilers, interpreters and so on. Some time ago I've written a calculator in Python (now willing to use a better language), which uses the Shunting yard algorithm and my own lexer.
So I want to start learning more about t... |
Is there something called Processor Bus? Whist solving one of the MCQ I ended up seeing the term "Processor Bus". Does this thing actually exists?
I did some research, but couldn't find one article that talks about Processor bus.
It would be great, if someone can guide me along.
|
What's the (asymptotic) solution of the recurrence $T(n,m,k,t)\leq T(n^\frac 1 m, 1, km, kt) + \Theta(n)$?
I know how to solve univariate recurrences, but this recurrence is much more difficult, so I am stuck here.
Edit:
The solution of this inequality should be something that does not imply any "dependency" between $... |
There are $N$ sticks. $N$ is an integer greater than zero. I want to divide it among $M$ boys. $M$ is also a positive integer. Partitioning $N$ among $M$ is easy, but doing it as evenly as possible is difficult for me to think through. Can someone suggest an algorithm? Similar questions exist on this site, but I could ... |
In Eva Tardos Strongly polynomial Minimum cost Circulation Algorithm , Step 1 states projecting d, the cost function on a subspace X where flow is 0 for all tight Edges. Also we define an incidence matrix A for all non-tight edges with values{ 1,-1,0} accordingly.
later it is proved that the projection is d(E-T(G))+πA ... |
Having trouble understanding what it means to define something inductively in the following context.
Can you give an inductive to define the length of a list L?
a. The total number of items in L is the length of L
b. Basis: the length of an empty list is 0
Induction: the length of a list is 2*(length of half the lis... |
Problem statement: The search space A involves elements $|0\rangle $, $|2\rangle$... $|d-1\rangle$. An oracle is provided for the function $f(x)$ where
\begin{align}
f(x)&=1 \quad x=x^{'}\in A \\
f(x)&=0 \quad x \neq x^{'}
\end{align}
The aim is to find $x^{'}$.
We have an oracle U corresponding to $f(x)$ whose actio... |
Let an undirected graph and $k\in\mathbb{N}$. Prove that there's a circuit of depth $2$, size of $n^{O(k)}$ and unlimited fan-in, which gets $\langle G,v,u\rangle$ as an input and checks if there's a path from $u$ to $v$ of at most $k$ edges.
So I'm familiar with Warshall's algorithm and I think I should utilize it h... |
I've started with tree automata. The definition is
(Leaf-to-root) Tree automaton $\mathcal M$ over (nonempty, finite) alphabet $\Sigma$ is quintuple $\mathcal M=(K,\Sigma,\delta,S,F)$ and bound $f$ (the fan-in bound), where $K$ is finite set of states, $S\subseteq K$ set of initial states, $F\subseteq K$set of accepti... |
I need camera to sign one random line(there are something like 2000 lines) from the frame each second.
At the beginning I have some 64 bits seed with high entropy from physical RNG and a secure channel with camera. How should I generate the needed number?
|
I want to come up with an arbitrary string, and feed it into my program to see if there exists two strings that I can concatenate to get the target string. What kind of data structure and algorithm would be good for this? I'm thinking a sorted array would be good, and then walk down the list, binary searching for the s... |
I have two languages as below.
$$L_1=\{a^ncb^n\}\cup\{a^mdb^{2m}\}$$
$$L_2=\{a^{2n}cb^{2m+1}\}\cup\{a^{2m+1}db^{2n}\}$$
Now, I wonder what is $L_1\cap L_2$. Is it a regular language? Is it context-free?
To solve the problem, I feel like I need to solve the following system of equations, but I'm not sure.
$$
\begin{cas... |
Quantum computing essentially relies on the fact that qubits maintain multiple possible states simultaneously. Parallel computing too processes multiple states simultaneously. So what is the difference or how are they different?
|
I wanted to make a tool which minimizes the interference between antennas.
Currently, the tool is very limited for prototyping reasons. It can only place an antenna every 1 meters. The available space that the antennas can be placed is 1 dimensional and is 15 meters wide.
The user can only decide how many antennas will... |
I was looking at graph extensions in argumentation theory and was wondering, which of those extensions does every graph have? and which of those only some graphs have? and is there a proof for each?
thanks
|
I ask this question because I deal with alot of intermittent bugs and want to be able to answer the question "Can I be at least 95% sure that my changes to the code fix the bug?". I've got some ideas on how one could formalize the problem, but I'm guessing that someone else has done this.
I'm particularly interested i... |
I am given a directed acyclic graph (DAG) with a unique source and sink. Is there an efficient way to test whether the partial order represented by this graph is a lattice?
In other words, I need to test whether any two vertices have a unique least upper bound and greatest lower bound.
From brief browsing, I found an $... |
Most libraries use some variation of bottom up merge sort, but top down merge sort seems to dominate web sites and forums.
Assume reasonably optimized implementations, where a single working array is used in addition to the original array, and copy or copy back avoided in top down merge sort by tying the direction of m... |
The Wikipedia definition of Kolmogorov-random defines a string (usually of bits) as being random if and only if it is shorter than any computer program that can produce that string.
Aren't nearly1 all strings shorter than a certain length2 going to be Kolmogorov-random?
If a random Turing machine is chosen, then prog... |
If we come to the situation when we have to insert again the original key into the original table, I believe we have found a cycle. Is there a way to prove this?
|
It is known that intersection of three general matroids is NP-hard (wiki), which is done via reduction from Hamiltonian cycle. The reduction uses one graphic matroid and two connectivity matroids.
A special case of a problem I am working on can be solved by intersection multiple graphic matroids, but I haven't been abl... |
List of problems I'm interested in:
$\oplus$SAT
#SAT-decision
Permanent-decision (YES if permanent is greater than given number $k$)
I have discovered poly-reduction for MAJSAT (and MAJQBF). However, I don't know such reduction (practical) for these problems.
How can I solve any of these problems with polynomial runs... |
There are some terms in lambda calculus that don't really have a normal term. My question is for a term like the following:
$$T \overset{def}{=} \lambda f. (\lambda x. \; f \; (f \; (f \; x)))$$
$T$ takes a function as its argument and transforms the function space by applying it three times. If I apply $T$ to itself, ... |
I'm reading the The Algorithm Design Manual book on Data Structures and it says the following about linked listed implementation:
Insertion into a singly-linked list is a nice exercise in pointer
manipulation, as shown below. Since we have no need to maintain the
list in any particular order, we might as well inse... |
I've come across many coding exercises that require me to determine whether or not two strings are permutations of each other and I've repeatedly wondered if it would be possible to convert each string to char codes and perform mathematical operations on them to determine equivalence.
My idea was to sum up the char va... |
Following this procedure I have successfully written a program to calculate the probability of ending in a given absorbing state given the initial state. The procedure is as follows:
Given the transition matrix (P), row and column swap until the identity matrix is in the bottom right corner.
$$
P = \begin{bmatrix}
... |
I'm reading the The Algorithm Design Manual book on Data Structures and it says the following about FIFO and LIFO containers:
Support retrieval in first in, first out (FIFO) order. This is surely
the fairest way to control waiting times for services. You want the
container holding jobs to be processed in FIFO orde... |
Is there an algorithm that can take an element on an arbitrary integral domain, and determine whether or not it is prime on that ring?
It is pretty trivial to do so on a finite integral domain, because no finite integral domains have primes (all elements are units). It is also pretty simple on the ring of polynomials ... |
I can't quite figure out an algorithm for this:
Given some integer n, what subset of the primes (so no repeats) would yield the lowest possible sum if their product is at least n?
Example: 6 -> 2*3,
2308 -> 2*3*5*7*11,
14 -> 3*5
Does anybody know how I would do this?
This is part of a research project I'm doing on fini... |
Let us assume that we have two algorithms, $A$ and $B$. Based on 3 different values of a parameter, $P$, $A$ takes $a_1, a_2, a_3$ seconds and $B$ takes $b_1, b_2, b_3$ seconds. What would be a proper way to measure which algorithm is more sensitive to $P$?
To address a diverse community, I will give an analogy: let u... |
I would like to compare performance of function encoded (Church's / Scott's) vs classically encoded (assembler / C) data structures.
But before I do that I need to know how efficient is / can be function representation in memory. The function can be of course partially applied (aka closure).
I am interested in both the... |
Earlier I wrote this question about an algorithm computed on an integral domain. However as commented I didn't suggest any particular ways of storing an integral domain in computer memory. I set out to do this but found it a particularly difficult task.
It is in fact impossible to store all the integral domains in me... |
We are given the following task:
Let $\mathcal{A} = {}(Q_A,\Sigma, \delta_A, s_A, F_A)$ and $\mathcal{B} = {}(Q_B,\Sigma, \delta_B, s_B, F_B)$ be two NFAs and let their product automaton be defined as:
$\mathcal{A} \times \mathcal{B} = {}(Q_A \times Q_B,\Sigma, \delta, (s_A,s_B), F)$ with
$\delta = {}\{ ((p,q),\sigma,... |
Can someone please give a couple of examples of the language and construct a grammar for the language (given below), or at least show me how I can go about it?
I am looking for a context-free grammar generating the language
$$ L = \{ a^n b^m \mid n,m \geq 0 \text{ and } n \neq 2m \}. $$
I asked a similar question on st... |
I know that the language {w ∈ {a, b}∗| |w|a = |w|b} is not regular since somehow, you can't store all the information needed in a DFA. I've seen that normally it's done with reduction to absurdity or pumping lemma and also having into consideration that the language a^nb^n is not regular
But I would like to see a forma... |
I'm generating valid timetables for my uni with a simple generative recursion algorithm like this (disregarding handling of course-specific labs and tutorials)
def generate(current_timetable, unallocated_courses):
if conflicts(current_timetable):
return
if not unallocated_courses:
results.add(cu... |
The guess solution to the
$$T(n) = 2T\left(\frac{n}{2}\right) + \frac{n}{\log n}$$
is $\Theta(n \log{\log n})$. This is my solution:
$$
T(n) \leq 2c\left(\frac{n}{2}\right) \log{\log {\frac{n}{2}}} + \frac{n}{\log n} \\
\leq cn \log{\log {\frac{n}{2}}} + \frac{n}{\log n}\\
\leq cn \log{\log {n}} + \frac{n}{\log n}
$$
t... |
I'm trying to get a better grasp of computation theory, and have a few questions that I can't seem to find great answers too.
Given language L, which is non-recognizable, is L* context free?
Is P countably infinite, and why?
Are all recognizable languages NP-complete?
|
In programming languages like Haskell you can use lazy evaluation to delay calculations.
Why isn't a similar approach being used for numerical methods (I understand that there would be memory implications).
The approach would be that non-integer values would be stored as how they are calculated, so that the next digit ... |
In this paper the authors show how to use two NN that respectively recognize an art style and an image content to apply style filters to photographs.
However, I am confused about how would one train a NN to consistently identify the style of a given author, given that the dataset cannot be too big (an author may paint ... |
It might be a silly question, I do take a carefully read about approximation algorithm through coursenotes, but when I saw the words "approximation algorithm with polynomial complexity", I can't understand what it means, I searched a lot and here is my assumption.
First, for some NPc or NP hard problem, we can try to s... |
I have a finite state machine FSM like below.
I want to know which of my languages are recognized by my FSM:
$$L_1=L(0^*1(10)^*(00^*1(10)^*)^*)$$
$$L_2=L((0+1(10)^*0)^*1)$$
$$L_3=L(0^*1(10+00^*1)^*)$$
$$L_4=L(0^*(1(10)^*0)^*1(10)^*)$$
I tried to figure out, but I got confused.
|
There are
$k$ Boolean variables $x_1, x_2, \dots, x_k$.
$m$ arbitrary subsets of these variables such that sum of each set equals to $1$ (i.e., only one variable is $1$, the others are $0$). E.g., one of $m$ constraints may be $x_1 + x_3 + x_5 + x_6 = 1$.
$n$ arbitrary subsets of these variables such that sum of each... |
I'm facing the following problem:
Describe a distributed MST algorithm in time $O(n \log \log n)$
I've managed to think of the following,
Run GHS(Gallager, Humblet and Spira) algorithm, till there are $(n/(\log n))$ fragments.
This way I believe there's a small thing to do so the finding of roots to connect fragments... |
Good day
Is there any regression Machine learning model, based on k-means?
Example (Zillow's Zestimate):
I have a lot of houses(with features like sq.feet and location) and prices. I want to estimate price for a new house by averaging k neighbors.
|
Hint: I know it is associative and I just need a proof: (m1 ⊕ m2 ) ⊕ m3 = m1 ⊕ (m2 ⊕ m3) that will show that the operation "⊕" is associative. Thank you in advance!
operation "x" in the image is multiplication!
|
I was asked to combine the ip addresses into a single block:
16.27.24.0/26, 16.27.24.64/26, 16.27.24.128/25
I managed to convert the given ip addresses into binary:
00010000.00011011.00011000.00000000 | 00011010
00010000.00011011.00011000.01000000 | 00011010
00010000.00011011.00011000.10000000 | 00011001
I am not qu... |
A Wang B-machine is Turing-complete and has only 4 instructions:
right: Move head right.
left: Move head left.
mark: Mark square under head.
branch n: If square under head is marked, jump to instruction $n$.
Inspired by P′′, consider a machine with the following instructions:
right: Move head right.
markleft: Mark s... |
Has anyone estimated Chaitin's constant for Turing machines with an empty tape as input?
|
Can cognitive architectures (CLARION, SOAR, ACT-R, others) be used for creative mathematical reasoning? As far as I understand, then it is the best to encode formal mathematical knowledge in the languages of proof assistants like Coq (CIC - Calculus of Inductive Constructions), Lean, Isabelle/HOL, Mizar. But those proo... |
I am having some trouble on understanding link-cut trees, so I need some help.
Suppose that we have nodes $A, B, C, D$ and we want to do the following operations:
Link(A,B)
Link(B,C)
Link(C,D)
Following instructions of https://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-851-advanced-data-st... |
Say we had two agents and we want them both to traverse a map concurrently.
Their goal is to collectively visit a collection of certain points on the map. If there was just one agent, it would be simple enough to just implement BFS or A* and get a good solution.
But considering there are two, how can we divide the poi... |
What are the minimum depth circuits possible for addition and multiplication of two n-bit numbers using just AND and XOR gates?
I read somewhere that we can achieve constant depth for addition if we have an OR gate. Can I achieve that using XOR gates?
|
Princeton Algorithms course shows the implementation of Queue using linked list and two pointers - head and tail. I've implemented the same functionality as a circular linked list using only one pointer tail. I'm wondering what's the advantage of two pointers versus one in a circular list. It takes more space as I unde... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.