instruction stringlengths 35 29.1k |
|---|
What is the space-complexity of Van Eck's sequence?
https://oeis.org/A181391
Input: $x$ (number in binary representation with $n$ bits)
Output: $x$th number in Van Eck's sequence
Length of input: $n$
The naive algortithm would generate one entry of the sequence after the other and store all previous entries. Storing $2... |
I was asked to define a CFG for the complement of $\{w\#w \mid w \in \{0,1\}^*\}$ and I'm struggling to define it. I think it is quite similar to defining a CFG for the complement of $\{ww \mid w \in \{0,1\}^*\}$, but I'm finding that the '#' really messes things up. Is the language even context-free?
|
We have $n$ customers, $(x_1, \dots, x_n)$, sorted on the read line. For convenience, we also use $x_i$ to denote its coordinate on the line. We need to locate $m$ facilities on the real line. We note that these facilities can be located anywhere on the real line. Each facility $j\in [m]$ is associated with an entrance... |
Cyclomatic Complexity is defined with reference to the control flow graph of the program through this formula (borrowed from Wikipedia):
M = E − N + 2P,
where
E = the number of edges of the graph.
N = the number of nodes of the graph.
P = the number of connected components.
I can't understand the last. What is "the nu... |
I'm trying to make non deterministic automata for specific language .
I cant understand my mistake!
Rules:
1){a,b,c}
2) if I have the sequence "bb" and later in the word I have the sequence "cc" so this is not possible that I have the sequence "cba" between them.
Thank you !
|
Is it connected to BST search O(log n) or height log n?
How to prove that insert will give give you correct BST in minimum O(log n) time?
|
Does the following 2-3-4 tree have a height of 3 or 2?
If I count from the external nodes i.e. the ones with the square boxes then height should be 3.
Not sure if they are to be included in the height as they are represented as NIL.
If they are not to be included then the height of the tree should be 2.
Any clarifica... |
I have a problem regarding Recursion Theorem in Computation Theory.
So Turing machines can have themselves as input. So they can simulate themselves(this technique have been used in many proofs i saw).
what does a Turing machine that only simulates itself does?(assume the machine has only 2 commands get it's descriptio... |
An array of combinations is generated from two arrays,
indices: 0 1 2 3 4 5
array 1: [a, b]
array 2: [A, B, C]
repeating array 1: a, b, a, b, a, b
repeating array 2: A, B, C, A, B, C
combinations: [aA, bB, aC, ... |
Question: Write a function that takes in the head of a Singly Linked List and an integer k and removes the kth node from the end of the list. The removal should be done in place, meaning that the original data structure should be mutated (no new structure should be created). Furthermore, the input head of the linked li... |
What's the difference? is a Recursion tree private case of Binary tree?
|
I am studying Term Rewriting by reading Baader/Nipkow's book "Term Rewriting and All That". I am in chapter 3 - Universal Algebra, in the section 3.2 - Algebras, homomorphism and congruences. I am trying to do exercise 3.10:
Let $\mathcal{Z}$ be the additive group of integers.
(a) - Determine all subalgebras of $\math... |
I often see big-O notation for time complexity algorithms and I see an equation that looks like $O(n) = n\log n$, which naturally generates a graph like the bottom one:
I know the x-axis represents some amount of information, and the y-axis represents some amount of time. However, what is the amount of actual time or ... |
The problem I am working on is specifically this:
A Maze is given as N*N binary matrix of blocks where source block is
the upper left most block i.e., maze[0][0] and destination block is
lower rightmost block i.e., maze[N-1][N-1]. A rat starts from source
and has to reach the destination. The rat can move only in two
... |
I was wondering if its possible to use floyd warshall with constraints meaning lets say you have a group of "special vertices" of size logn and you want to calculate all the shortest paths but each path has to go through at least one "special vertex" is this even possible or is it hard n
|
regarding the following post: Prove that $BPP^{BPP} = BPP$
Let $L\in BPP^{BPP}$, by definition $BPP^{BPP} =\bigcup_{O\in BPP}BPP^O $, therefore there exists a language $A\in BPP$ such that $L\in BPP^{A}$.
This means that there exists a $\mathsf{PTM} $ $M^{A}(x,r)$ such that $\mathbb{P}_{r}(M(x,r)\neq L(x))\leq \frac{... |
(originally asked on StackOverflow)
Two recent questions on StackOverflow by the same author1 are generally solved by the same technique. This feels to me like it would be a studied and perhaps well-solved problem.
I would like to know what it might be called and where to find more information about it, assuming it i... |
Let $[n] = \{1, 2, \dots, n\}$. Suppose we have a subset $S$ of $[n]$ of size $k$.
Can we sample one element uniformly at random from $[n] \setminus S$ in $O(k)$ time?
It's okay to use $O(n)$ auxiliary memory assumed to be initialized with zeros, as long as your algorithm can run and clean up back to the initial zero s... |
What algorithm do computers use to compute the square root of a number ?
EDIT
It seems there is a similar question here:
Finding square root without division and initial guess
But I like the answers provided here more.
Plus the person asking the similar question had the question formed in a personal way.
My question ha... |
So I've been working on a problem for fun and I'm worried I've run into some sort of contradiction, so I'm trying to figure out where I went wrong. I've simplified the issue down to this:
Decider acceptance can be reduced to LBA acceptance
Part 1: A decider can be reduced to a decider with an empty input alphabet.
Let... |
I'm new to functional programming.
So the terms cons appends an element to the front of the list. Where cons ≜ λx:λl:λc:λn: c x (l c n).
How should I go about proving that cons works correctly using beta reduction for a sample function. For example reducing cons 3[2,1] to [3,2,1]? Is there a formula like for the artihm... |
Not sure precisely how to ask this question, but I want to understand if it is meaningful to ask about probabilities when aspects of the definition might be undecidable. My curiosity extends to potential implications for definitions of entropy in physical systems. Let me try to get a little more precise about the que... |
Please help me with the following question:
Define the language LONGERB to be the set of strings over $\{a,b\}$ where the longest substring containing only $b$’s is strictly longer than the longest substring containing only $a$’s (e.g. $aabaabaaabbbba$ is in LONGERB because the longest substring containing only $b$’s ... |
Context: I'm operating a service with 5 accounts simultaneously servicing tens of millions of users. The accounts using the service have extreme bursts due to various campaigns by each account and the incoming requests from one account can suddenly go up 100x. All our queries are about equally expensive, so it makes se... |
I have some $n$ numbers which are powers of $2$, say $a_1,a_2,a_3,\ldots,a_n$ which are not necessarily all distinct. I have option to give them any sign. I have to find if I can make their sum after that equal to num.
I have following algorithm which I am sure will work, by a lot of arguments and verification, but I a... |
I was watching the algoritmhs course by mycodeschool and he said that when we add a new item on a given position the worst case would be $O(n)$. Everywhere I look says insertion is $O(1)$...
Now I understand that insertion itself might be $O(1)$, but if I have the following interface (this is something I made up, not a... |
Let's say I am using the divide and conquer algorithm outlined here, but I only want to return the minimum distance. I understand why that algorithm puts an upper-bound at 7 but I think that can be trimmed down further. I can't come up with a geometry of points where if you are comparing them in order by sorted y value... |
I'm trying to figure out how close (in orders of magnitude) current computer technologies are in terms of energy efficiency to the Landauer Limit. However, I'm finding (seemingly) conflicting information about this, and the discrepancy seems to arise from different metrics and assumptions.
This Royal Society piece (wit... |
Consider 4 positive integers a,b,c,d having exactly 10^11 bits (considering the leading zeroes) in the binary representations. Positions are numbered from 1 to 10^11. Every 3rd bit of a is equal to 1 (in other words bits number 3,6,9 and so-on), every 7th bit of b is equal to 1, every 4th bit of c is equal to 1, every... |
NxN Checkers where both players are playing to win is EXPTIME complete.
If we fix NxN to be 8x8 and prepare a very large lookup table then it can be solved in constant time and space.
How to formulate Checkers to make it P and NP-complete? (2 different formulations)
Note: I am interested in usual competitive Checkers. ... |
For an undisclosed reason, I need a list of $n$ squares in a two dimensions space where each square does not overlap.
So the challenge is simply: given a two dimensional area $a$ (topLeft: int, topRight: int, width: int, height:int), a number of squares required $n$ and a size for each square $s$: generate a list $L$ o... |
Does back substitution method work for any recursive equation? If not is there any generalized form for recursive equation?
|
I usually post on Stackoverflow, but I got stuck with a problem which I think fits better here and I hope someone can help me. The task ist pretty simple:
Shuffle/Randomize an array/list
conditions:
each Index has to change; an Item which was at index 0 before the shuffle has to be at an index != 0 after the shuffle
a... |
I need to generate all unique tuples of length k chosen from a series of unique, positive integers. In my case n choose k will have n=10, 1 <= k <= 10; and the series I am choosing from is { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } .
For each chosen tuple, all of its permutations need to be present in the output. For example, f... |
Suppose that we have a complete undirected positive weighted graph $G = \langle V, E\rangle$. What is the most efficient algorithm, in terms of time complexity, to find an MST for $G$?
The best prime complexity I have found is $O(|V|^2)$, and the complexity of the Kruskal algorithm is $O(|E|\cdot \log(|E|))= O(|V|^2 \c... |
I've got the following equation:
$p(j = 1 | x, \theta) = \frac{p(j=1,x | \theta)}{p(x | \theta)}$
Why does it hold? Or maybe, how do I use Bayes Theorem in this case, i.e. if we do not only have $p(j = 1 | x)$ but $p(j = 1 | x, \theta)$?
|
According to wikipedia, Lamport clocks need to be incremented when sending a message (time = time + 1) and when receiving a message (time = max(time_stamp, time) + 1).
In my implementation, Increment() is used when sending and Witness() is used when receiving, each of them following the previous rules.
I can't understa... |
Summary:
A task for picking certain objects is given in the form of an ordered sequence (eg. to pick apple, banana, apple, apple, orange, order matters). The objects have to be preassigned to certain physical locations with all the pairwise distance being known and fixed. The question is how to efficiently find the bes... |
How is it possible to prove whether the language $\{a, b\}^{∗} \setminus \{S → ε, S → aSbS\}$ is context free?
|
I've been asked to do this as part of an assignment. Here is the automaton:
I understood it as describing in terms of the 5 tuples so I wrote:
The states are as follows: Q = {A, B, C}
The alphabet is as follows: Σ = {0,1}
The start state is A
The accepting state is C
The transition function is as follows:
Is this wh... |
I was watching this video on Algorithms and counting number of inversions and he mentioned being cautions when $O(n) + O (n) = O(n)$, saying that is not true if you add $O(n)$ to itself $n$ times. Is the answer $O(n^2)$?
|
I was reading the book "Computer systems: A programmer's perspective" and saw that the operator, "~", is a NOT operator. When I use it to NOT positive integers, it returns the negative of the original number plus one. Why does that happen?
|
So I was watching this video https://www.youtube.com/watch?v=ZjjAbFxjxLQ and the guy was explaining why the top automaton is NFA (because the initial state doesn't know what to do if the input string begins with b) and the bottom is DFA (because the initial state points to a 'dead state' if the input string begins with... |
Do guarantees provided by the type systems enable better performance optimizations by the modern compilers? I found a 20+ year article suggesting that it would. Also, intuitively speaking, knowing more about the code in advance should also be useful. However, a friend claims that modern JIT compilers make such claim ir... |
CLRS problem 23-4 part c gives an algorithm that may or may not compute a minimum spanning tree. Given some connected undirected graph G, we have
MAYBE-MST-C(G,w)
T = empty set
for each edge e in G, taken in arbitrary order
T = T U {e}
if T has a cycle c
let e' be a maximum-weight edge on c
T = ... |
As the title says, I'm just curious if there are any problems with polynomial-time algorithms, but where no polynomial-time algorithm for it is currently known? Of course, this question would be trivial if the only method of showing a problem is in class P is by providing an algorithm. However, there can also be non-co... |
I'm currently trying to investigate the relationship between relation extraction (RE) and event extraction (EE). Doing more reading on the two tasks has caused me to question my initial belief that RE is within the task of information extraction (IE).
The reason why I believe so is because RE is typically modeled as a ... |
Which areas of CS/Math should one have mastered before diving into parametrized complexity?
|
one example:
How many ways we can do possible value-preserving parenthesis the following expression in such a way that value not changed after parenthesis with one constraint that parenthesis among one variable is not correct (i.e: $(i)+j+k$ is not acceptable) ?
as an example for expression $i+j+k$, parenthesis like ... |
I am reading Yves Lafont's introductory paper Interaction Nets. Early in the beginning he mentions that max cannot be coded as follows
since in this coding it is not possible to choose which argument to look at first (so necessitating the need for a principle port). But I don't understand why it's wrong. I am trying t... |
Hope you had a fantastic christmas break :)
I am trying to find an algorithm in polynomial time that finds the shortest arithmetical expression (the one with the least amount of 1 symbols) to express any natural number, while only using the elements of $\Sigma=\{(,),1,+,\times\}$.
As an example there are multiple ways ... |
Given a Turing Machine T, are there any input strings rejected by T. I need to decide whether this is decidable or recursively enumerable. I think it's undecidable, but I'm not sure how to prove it.
My initial approach would be to reduce the Halting Problem as either a string will 1)halt on final state i.e accepted or ... |
I have an assignment in linear programming and this question was asked:
given an input of two data sets $P_1,P_2$ containing points $(x,y)$, create a linear program that finds an equation of a line the separates between the two data sets.
Now I saw in Wikipedia the article about linear separability and I didn't underst... |
Question
I want to analyze the potential of a cloud computing application that performs payroll and invoicing over the Internet from a large Internet company.I want also to describe the systems development
steps and procedures you would use to analyze the feasibility of this approach.
I would like to find material and... |
Give an example of a string in the language of $(0^*10^+)^+$.
I've been asked to give an example of a string in this language but I'm confused on how to read this notation. I'm guessing the acceptable strings are supposed to start with 0, but that's about all I can infer.
|
TLDR: I want to know if there's a simple way to fill in distances for all vertices reachable from negative weight cycles (not just ones on the cycle itself) once Bellman-Ford has found a negative-weight cycle.
The Bellman-Ford algorithm finds single-source shortest distances $d$ for a graph of $|V|$ vertices by making ... |
I'm reading this paper on latent representations with the information bottleneck https://arxiv.org/pdf/1804.06216.pdf and in section three, the authors write that the parametric formulation of the information bottleneck is
$\max\limits_{\phi,\theta} - I_\phi(t;x) + \lambda I_{\phi,\theta}(t;y).$
My question is not abou... |
As far as I can tell, there are no examples of trapdoor functions which hardness assumptions is merely hardness of some NP-hard problem in worst case. That is, a trapdoor function in which, it is proved that, if there is an PPT algorithm that can invert it with non-negligible probability, then there is a PT algorithm w... |
Axiom schemata (such as ZFC) are, in a sense, infinite sets of axioms. Do the ATPs designed to work with FOL (such as Vampire) accept axiom schemata?
I looked in the Vampire "manual" briefly, but couldn't answer this question. Is this possible? How would one do it in TPTP syntax? Are problems involving axiom schemata p... |
I have some difficulties in understanding how to prove when a language is in P or is NP-Complete. Specifically, consider the following decision problems w.r.t undirected graphs $G = (V, E)$:
$L_1 = \{ \langle G = (V, E), k\rangle \mid \text{$G$ consists of connected} \\ \text{components of size at most $\log|V|$ each,... |
I was given this special type of Directed Graph and was asked to find it's Maximum Independent Set.
Graph Properties :
Graph has $N$ vertices and $N$ edges
There can be no edge from a vertex $v$ to itself
Each vertex $v$ has only 1 outgoing edge and 0 or more incoming edges
I framed this problem as a linked list with... |
I was asked the following question in an interview and I don't understand what is the best solution for it -
Assume you have an application that needs memory. It asks for a program for this memory, 20 bytes each time.
Each allocation (calling to malloc) costs another 8 bytes, so actually, you use 28 bytes (if you alloc... |
I would like to know how to derive the time complexity for the Heapify Algorithm for Heap Data Structure.
I am asking this question in the light of the book "Fundamentals of Computer Algorithms" by Ellis Horowitz et al. I am adding some screenshots of the algorithm as well as the derivation given in the book.
Algorithm... |
I am afraid the question title might not be sufficiently accurate but I could not come up with something more accurate
Here is the problem
Given 'n' machines
Each machine has a set of capabilities
Each machine has max availability (A(m))
Given 'm' tasks
Each task requires a set of capabilities
Each task takes a cert... |
I do not have a strong background in theoretical computer science, so the terminology I use may not be the most ideal.
Basically the "trend" across programming languages I have noticed is that there appears to be an trade-off in the speed of a programming language (how long it takes to execute a program) and its expres... |
Evening All
I already have a "grasp" of haskell (not terrible, about 6 month experience) and am trying to learn the fundamentals that sit behind it, thus am now turning my attention to trying to learn Lambda Calculus. I thought, perhaps mistakenly, that it might be a good idea to try to work out the λ -terms that corre... |
I am currently taking computer science coursework as part of a computer science related degree at my University. I was wondering if I should upload the solutions I make for various trivial homework assignments (ie. not more than 20-30 or so lines of code, on basic/fundamental topics) to my GitHub account, or if I shoul... |
I'm looking for a computer langauge with "dependent types" but...
The problem with it having a full implementation is that you end up having to write formal type proofs to get even anything simple done. (Agda/Iris). These are fine if you are writing a proof checker but not for general programming.
As a compromise it wo... |
CLRS exercise 24.4-9 says the following:
Show that the Bellman-Ford algorithm, when run on the constraint graph for a system $Ax \leq b$ of difference constraints, minimizes the quantity $\max_i\{x_i\} - \min_i\{x_i\}$ subject to $Ax \leq b$. Explain how this fact might come in handy if the algorithm is used to schedu... |
I'd like to partition a graph into subgraphs with overlapping nodes.
To do a simple partition into two, I could use kernighan_lin_bisection algorithm available in networkx package.
import networkx as nx
from networkx.algorithms.community.kernighan_lin import kernighan_lin_bisection
if __name__ == '__main__':
G = ... |
Afternoon All,
Perhaps an easy one for many, but am new to Lambda calculus:
Is the below list, Ni, a representation of the Church numerals? I think it is but how do I prove it...if not, what is it...?
The terms Ni and N'i for each natural number i are defined as follows.
(n and c are variables while i stands for a numb... |
The following problem (I'm paraphrasing) appeared in the 2019 Balkan Olympiad in Informatics:
Five friends are on a road trip in a country with $N$ cities and $M$ bidirectional roads joining them. They start in city $1$ and wish to end in city $N$.
All of them love driving, so they move in the following fashion:
Each... |
Say I have an object which I pass to a method, and the method returns that same object, just mutated.
So it goes like this:
doSomething({ a: 1 })
// { b: '1' }
function doSomething(input) {
input.b = String(input.a)
delete input.a
return input
}
How do you specify a type for this object and type for the action ... |
The following problem was part of a local programming contest I attended..(I solved it via the obvious Brute Force solution)
I was wondering whether there was a cleaner Dynamic Programming solution.
Problem Statement:
You have an array $a$ of $n$ integers and an integer $k$. Your task is to find a subset $m$ of a where... |
Given the languages $L_0 = {w \in \{0,1\}^*}$ such that $w$ is a palindrome and $L_1 = {w \in \{0,1\}^*}$ such that $w$ is not a palindrome, meaning $L_1$ is the complement of $L_0$, we want to find the grammar for both languages. $G(L_0) = S \to \epsilon | 0S0 | 1S1 | 0 | 1$ is easy to come up with, but $G(L_1)$ is mu... |
This question connects different disciplines so it's awkward to choose a SE site for it, but I'll go with this one because here (I hope) the shared culture will make information transfer easier.
So computers as we know them use electricity and I don't know what other invisible things that I don't understand. I was wond... |
Why we can't create a binomial heap in max-heap format instead of min-heap format?
|
Context
I am a final year Bachelor of Mathematics student and next semester I will write my Bachelor thesis.
My interests are in Machine Learning (ML) and I will do a master in ML next year. More specific sub-fields I like are
Deep Learning
Computer Vision
Natural Language Processing
Reinforcement Learning
And my int... |
I have the following problem: I have $c$ conflicts, named $(c_1, \ldots, c_c)$, where each conflict $c_i$ has certain size $s_i\in\mathbb{N}_0$: the number of times conflict $c_i$ has happened. Also, I have $m$ conflict resolution methods, named $(m_1, \ldots, m_m)$. Each method $m_j$ cannot be used more than $u_j\in\m... |
I have a real life algorithmic problem and I'm trying to find out if there is any similar widely known algorithmic problem with known solutions that I could adapt to my particular use case.
I want to solve a kind of scheduling problem: I have a machine that will be processing jobs and I want to fit them into a schedule... |
I don't know how to find the Language and the regular expression for each one.
there are any special method for those kind of question?
|
I am a college student looking to get into industry work soon and want to understand what employers consider 'proficient' when it comes to programming languages. Right now, I understand that to mean that one can write a fully functional program without consulting any references. However, is there a tangible project o... |
I have found some problems whose solving "patterns" appear quite recently, and I am not sure if the way I'm solving them is the most correct/efficient one:
For example, take this language:
$\{w | w\in\{a,b,c\}^* \text{ with }|w|_a=|w|_b \text{ or } |w|_b=|w|_c\}$
The solution would be as follows, where $\\\$$ is the bo... |
I am making a scheme that respresents some closure properties (union, intersection, complement and concatenation) for regular languages, context-free languages, decidable languages and RE languages. Below you can see my scheme.
I am trying to find all possible internal closure properties of these different languages t... |
I stumbled across the optimization problem described below and I am looking for how to approach it efficiently. I have the feeling that the problem at hand might be known, but I was not able to find its name or further information on it. So any help to find an efficient algorithm for its solution or a pointer to the na... |
I have a list of billions of paths in an unknown graph, e.g.:
A -> B -> D -> E
A -> F -> K
A -> B -> K -> B -> D -> E
and I want to obtain the edge list, e.g.:
A -> B
A -> F
B -> D
B -> K
D -> E
F -> K
K -> B
This feels like a classical problem, and I would like to know if there is a classical solution.
|
In this question, I'm considering only "finite grammars". A finite grammar can only produce a finite number of distinct sentences. The following grammar is finite in my definition:
S → AB
A → B | a
B → a | b
It can only generate the following finite number of sentences: aa, ab, ba, bb
On the o... |
I have the following DFS2 pseudo-code, which is used in the pseudo-code of IDA*, from my teacher's book, but I cannot understand why it's correct:
DFS2(N0, f, threshold):
PQInit(PQ) // PQ means Priority Queue, for a pair (c, p) in PQ it represents a path from N0 to c.
PQ.offer(null, N0)
while isEmpty(PQ) is FALSE do
... |
Some scheduling algorithms favour CPU bound processes while others favour I/O bound processes.
Which algorithm favours which type of process?
My answers:
SJF favours I/O bound processes.Explanation: Short CPU burst processes(I/O bound processes) are given higher priority.
SRTF favours I/O bound processes.Explanation:... |
The question is clear in the title. I am trying to solve this recursion as a part of showing that the worst case of quicksort algorithm occurs when $k=0$, but can't do it. I could do the following specific cases (by repeatedly using the same recursion):
1)$T(n)=T(n-1)+O(n)$
2)$T(n)=2T(\frac n2)+O(n)$
Can anybody please... |
I'm looking for a collection of SAT problems that are usable for a test suite, i.e.:
are small/easy to solve, that is, this is not a benchmark but a correctness test suite
some satisfiable, some unsatisfiable
answer and a possible assignment (for sat. ones) is known
All I find online are collections of benchmarks but... |
I know that feedback vertex set (FVS) problem is $\mathrm{NP}$-complete since there is a simple and nice polytime reduction from vertex cover (VC) problem to FVS.
Specifically, given a undirected graph $G$, we construct $G'$ as follow:
For every $uv \in E(G)$, we construct a new vertex $e_{uv}$, and let $V_{0} = \{ e_... |
I am studying the longest path problem with the final objective to show that it is NP-complete. On wikipedia I read that the problem itself is NP-hard but the underlying decision problem is NP-complete.
I have some trouble understanding the difference between the two though. How are they not the same? I read in another... |
I am trying to remove ϵ rules from the following grammar (after applying the remove redundant symbols algorithm): $G = (\{S,A,B,C\},\{0,1\},P,S)$, where the productions are
\begin{align}
&S \to AB \mid C \\
& A \to 0A1 \mid \epsilon \\
&B \to 0B \mid 0 \\
&C \to 0C0 \mid B
\end{align}
The result of applying the remove ... |
I have been reading a book called The Algorithm Design Manual by Steven Skiena and one of the topics discussed there is an algorithm to find all the articulation points in a graph.
In it, we first construct a DFS tree and store the following information for each vertex in the DFS tree:
The traversal order at which we ... |
Given a full tree $\ T = (V, E, w) $ I need to find the path with maximum length from root $\\ s $ to any of the leaves.
I was thinking I could use some sort of BFS. Because I'm looking for maximum length path, I must go through all of the edges of the tree and I will start at the vertex $\ s $. So I'll use a dictionar... |
to prove this statement I assume the probing function as: $$h(i,x)=h'(x)+i^2 \text{ mod t} $$
And for $0\leq i,j < \frac{t}{2}$; $i\neq j; t \text{ prime}$: $$h(i,x) = h(j,x)$$
This results into $$(i+j)(i-j) \text{ mod t} = 0$$
Which is a contradiction as either $i+j=0$, $i-j =0$ or $(i+j)(i-j)=t$, and because i and j ... |
I want to learn about Volterra classifiers in-depth to understand the following papers
Papers
https://openaccess.thecvf.com/content_cvpr_2014/papers/Kang_Convolutional_Neural_Networks_2014_CVPR_paper.pdf
https://www.researchgate.net/publication/51855543_Trainable_Convolution_Filters_and_Their_Application_to_Face_Recog... |
I found the following answer:
$L_{17} = \{ \langle M \rangle \mid \text{$M$ is a TM, and $M$ is the only TM that accepts $L(M)$} \}$.
R. This is the empty set, since every language has an infinite number of TMs that accept it.
As I know number of TMs is $\aleph_0$ and number of languages is $2^{\aleph_0}$, so how c... |
Is it possible to generate a better random number generator algorithm from an algorithm that use N number of computers with an algorithm that uses N+1 number of computers? I use the word computer here, but I believe you can use the word processor instead as not all computers are single-processor computers although I am... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.