instruction
stringlengths
35
29.1k
I'm trying to understand the NFA and $\epsilon$ moves logic. Let's say there is an NFA $A$ with $\epsilon$ moves, if $\epsilon ∈ L(A)$ then $q_0 \in F$? and vice versa? If $\epsilon \in L(A)$ then $q_0 \in F$? How can I prove it?
For a property $P$ of languages, which we identify with the set of languages satisfying it, let $L_P = \{ \langle M \rangle \mid L(M) \in P \}$ be the set of descriptions of Turing machines whose languages satisfy $P$. How can we prove that there's no property $\displaystyle P\subseteq RE $ for which $ L_{P}=K $, wher...
Suppose we have context-free language and we know the Context-Free-Grammar, how do i found the minimum permanent which is pumping lemma for language ? for example let sat i have this Grammar: $$\begin{align} S&\rightarrow AA\mid B\\ A&\rightarrow 0A\mid A0∣1\\ B&\rightarrow 00B0\mid 1\\ \end{align}$$ whats is the best...
I wonder how do you clasify S->a (where a is a Terminal Symbol) It can be right linear,left linear and context free at the same time? So the only way to distinguish them is to see what productions there are with Non-terminal symbols (like S in this example) 0) If I see S->a it can be (left/right/context-free) impossibl...
I'm trying to understand how can I sort an array of $n$ elements when only $\log n$ are not in place. I heard that sorting an array with at most $I$ inversions has complexity $O(n\log(I/n))$. Because there are $\log n$ elements that are unsorted, in my case there are at most $n\log n$ inversion. The answer to the quest...
There are known algorithms to find the connected components of a given graph. Those I know are easily extensible to support addition of nodes and edges to the graph and then find the resulting components more quickly than by recomputing from scratch. What I'm looking for is an algorithm with an associated data structu...
I wrote a program to check the similarity of 40 documents. Firstly i use exact Jaccard method and secondly Minhash Jaccard method. I consider that the 2 methods differ if their values are differ more than 0,1. I also run the program for permutations 10,40,100,200,450. Which Jaccard limit must i choose to consider 2 doc...
The time hierarchy theorem states that $DTIME(f(n)) \neq DTIME(f(n)\log(f(n)))$ (Let me acknowledge that this statement isn't 100 percent accurate because f must be "time constructible" and potentially other things that I'm missing) If we were to take some function f, we can consider $DTIME(f(n)) \subset DTIME(f(n)\...
I was reading above complexity classes from Formal Languages and Automata book by Peter Linz. It gives following facts (in Theorem 5.2): Consider we have a CFG without null or unit productions. For parsing a string w, if restrict ourselves to leftmost derivation, we can have no more than $|P|$ sentential forms after ...
For given two lists $[s_1, s_2, ... s_n]$ and $[t_1, t_2, ..., t_m]$ I need to implement DTW algorithm with one extra constraint: If $s_i$ is matched with $t_j$ then the next element $s_{i+1}$ has to be matched with some $t_{j+k}$ close enough to $t_j$ (i.e. $0 \le k \le W$ for some fixed window size $W$). This constra...
An array or vector is just a sequence of values. They can surely be implemented with a linked list. This is just a bunch of nodes with pointers to the next node. Stacks and queues are two abstract data types commonly taught in Intro CS courses. Somewhere in the class, students often have to implement stacks and queue...
I read a previous question, Is a secondary TM sufficient to detect all loops?, which asks if there is a TM1 that takes the description and input of any other TM2 to detect if TM2 will loop for the input. One answer was to run two copies of TM2, the second at 1/2 the speed.If the second machine ever reaches the same con...
I have a basic question, but I cannot find an answer anywhere on the Web. I have the following grammar rules: S -> if C ; C -> O < O O -> O + i O -> i The part than I`m interested in is at rules 1,2 and 4. I have calculated First(O) = {i, +} and Last(O) = {i}. So, First(C) = {i,+,<} and Last(C) = {<, i}. Also, if <*...
According to these notes, DFS is considered to have $O(bm)$ space complexity, where $b$ is the branching factor of the tree and $m$ is the maximum length of any path in the state space. The same is said in this Wikibook page on Uninformed Search. Now the "infobox" of the Wikipedia article on DFS presents the following...
I wanted to know what are randomized algorithms and what are some of their uses? When do you think they outperform "standard" algorithms?
I'm looking for an algorithm that can partition a rectangle into N smaller rectangles, at random. N will be small (on the order of 5-10 in most cases). It need not be uniformly at random, but at the very least, I'd like to avoid algorithms which completely exclude interesting classes of partitions. One algorithm I've c...
On-chip multithreading is considered a powerful performance enhancer technique that enables a processor to handle multiple threads at the same time. If I got the idea right, multithreading avoids pipeline stalls by processing instructions coming from different threads - since no data dependencies exist between differen...
Well I guess it is only a matter of definition but I've failed to find certain answer to the following question: In a Petri net if transition has k inputs and zero outputs what is considered to happen when transition fires? Do we have just k - 1 token left and then just transition is not enabled?
I have 50 documents and im using LSH+Minhashing Jaccard and i get this results: for bands:25 -> false positives: 200 for bands:10 -> false positives: 80 for bands:2 -> false positives: 28 for bands:1 -> false positives: 4 Can anyone explain me why im getting more false positives for bigger number of bands and while d...
I need to find the intersection of the internal tangents of two point sets $V_a, V_b$ in $\mathbb{R}^2$, defined via their convex hulls. We can assume that the sets are disjoint and linearly separable, so I think the internal tangents are uniquely defined as the two lines which are tangent to each of the convex hulls o...
I have conducted two surveys on French political preferences. As half of each sample (of ~1000 persons) gave a satisfactory margin error, I have randomly displayed (or not) several questions. Now, I have an incomplete dataset of the preferences of the sample over many political propositions (I can provide it if needed)...
The textbook The Nature of Computation uses the following definition of quasipolynomial time: A quasipolynomial is a function of the form $f(n) = 2^{\Theta(\log^k n)}$ for some constant $k > 0$, where $\log^k n$ denotes $(\log n)^k$. Let us define QuasiP as the class of problems that can be solved in quasipolynomial...
Let's say that I have $N$ data sets where I have data points at some fixed frequency, such as "daily". What would be a good method for finding correlation between any of the data sets, or choosing a single data set, and asking what other data sets are most correlated? To make it less abstract, imagine that I'm logging ...
Say I have the following intsruction represented in a number of languages: | Language | Instruction | |----------------------------+----------------------------------------------------------| | English | ...
I recently learned about Q-learning, a reinforcement learning technique that directly estimates the expected value of taking an action in a state. One of the difficulties I see with iterative update techniques is how to set the learning rate hyper parameter. Depending on the environment, a high or low learning rate cou...
My question is - is there a semantic natural language processing that tries to understand the meaning of the texts and that tries to derive the consequences of the understood meaning? Is there a universal knowledge base that can be used for the "grounding" of the texts? I have heard a lot about statistical NLP and NLP ...
With $hash_n$, I mean a standard cryptographic hash like sha256, scaled up to have arbitrary length $n$ of its output with the same underlying principles. What is the time complexity class of the following problem? Given an $n \in \mathbb{N}$ and data $d$ with $length(d) = n$, determine whether $\exists p : ((length(p...
A lot of research and engineering effort is put into finding fast methods to sort an array of integers; e.g., Java's runtime library has highly-tuned methods to sort arrays of each primitive type (see java.util.DualPivotQuicksort). What are real-world applications of these methods? What are algorithms that build on pla...
What are the differences of ground terms in first-order logic and higher-order logic? I found on the Wikipedia: "In mathematical logic, a ground term of a formal system is a term that does not contain any free variables." That mentioned "free variable" is the same thing with free variables of $\lambda$-terms? I know th...
I know that the following problems related to Hamiltonian paths in graph are NP-complete: Undirected Hamiltonian circuit: Given an undirected graph, does it has a cycle that passes through each node exactly once? Undirected Hamiltonian path: Given an undirected graph, does it has a path that passes through each node e...
I am trying to understand why the formula $$ \frac{\log(1+x)}{(1+x)-1} \times x,$$ which simply reduces down to $\log(1+x)$, is considered as more stable to compute than $\log(1+x)$. In my head it doesn't make sense to me as my brain automatically simplifies it to $\log(1+x)$, which I am guessing a computer doesn't do...
Assume a CPO $Q,\leq$ and a Scott-continuous function $f : Q \rightarrow Q$. As it is known, the chain $\bot \leq f(\bot) \leq \ldots \leq f^n(\bot)$ (where $f^n$ denotes the function $n-1$-times composed with itself) leads to a fixed point of $f$. It is also clear, if $f$ is inflationary, that for any $q \in Q$, the c...
What's the difference between Computer Science and Computer Programming? I've spent nearly all my experience with compsci writing programs and what not, and I certainly like it, but I feel like there's a higher level I could pursue, like the ideas precede concrete programming. I suppose my question is, what does it mea...
How can we prove that the language $COF=\{M\mid L(M)\text{ is cofinite}\}$ is m-complete for the class $ Σ_3^0$ ? I have shown that $COF\inΣ_3^0$ but I can't prove that $COF$ is m-hard for $Σ_3^0$ which means that every other problem $L\in Σ_3^0$ satisfies $L\leq_m COF$.
The Wikipedia article on complex instruction set computing says Before the RISC philosophy became prominent, many computer architects tried to bridge the so-called semantic gap, i.e. to design instruction sets that directly supported high-level programming constructs such as procedure calls, loop control, and complex ...
Forgive me for my brief knowledge on hash functions as I am not from a computer science background, however I am researching password security for my thesis and have been looking into hashing functions for password security. I understand that a password goes through a hashing function and is stored in a separate databa...
Was analysing old exam, still, even in home condition can answer this: Determine which of the following languages over the alphabet $\{a,b,c\}$ are context-free. Prove the claim. (a) $L_1 = \{a^nb^mc^k \mid n \leq m \leq k\}$, (b) $L_2 = \{a,b,c\}^* \setminus L_1$, that is, $L_2$ is the complement of $L_1$ from (a). ...
I have theorised a indexing algorithm (like a B-tree). However, there's a mental block stopping me actually implementing it. The algorithm comes in to forms: form 1: A look up time of O(1) to O(log2(n)) Each value in the index will have metadata associated to it that is of the size log2(n)*memory address size form 2: ...
Given a language: $L = \{\; a_1b_1a_2b_2a_3b_3\dots a_nb_n \mid \forall i: a_i,b_i \in \Sigma, a_1\dots a_n \in L_1\ , b_1\dots b_n \in L_2 \;\}$ Also $L_1, L_2$ are regular languages. Using closure only (homomorphism) prove that L is also regular language. I think there can be a mapping $h\colon (L_1 \cup L_2) \to ...
Consider a library, that is used by different programs. Under certain (unknown) circumstances, an error can occur. I want to feed execution traces of faulty programs to some kind of an algorithm / framework so it learns about the "pattern" which led to the error. It should then, when fed a live trace, detect when that ...
What is the simplest possible way to calculate the coordinates of the center and the radius of the circle on the image (for example BMP and I'm interested in image of the Sun included below)?
Suppose a CSP has $n$ variables with finite domains of maximal size $d$. Furthermore, all constraints on the variables are binary. Can such a CSP be solved in polynomial time in $n$ and $d$? This was an exam question on last year’s AI exam, but I’m not sure how to solve it. I know the problem of graph coloring is eas...
Suppose two equal-length lists of double precision numbers $A=(A_1, \ldots, A_N)$ and $B=(B_1, \ldots, B_N)$. Given a constant, $\epsilon > 0$, I want an efficient algorithm for finding 4-tuples of the form $(A_a, A_b, B_c, B_d)$ for which $|A_a + A_b - (B_c + B_d)| < \epsilon$. One thing you could do is form the sum s...
Given a vector of positive integers $A=[a_1, \cdots, a_n]$, where $\sum_{1 \leq i \leq n}a_i = n(n-1)$ and $a_i \geq a_j$ iff $i \geq j$, I am interested in encoding the vector, maintaining the following conditions, The result of encoding is unique, i.e. the encoding of two different vectors cannot be the same. The re...
Let SHAM3 be the problem of finding a Hamiltonian cycle in a graph $G=(V,E)$ with $|V|$ divisible by 3 and DHAM3 be the problem of determining if a Hamiltonian cycle exists in such graphs. Are DHAM3 and SHAM3 $\mathcal{NP}$-hard? What I tried is I proved that the problem of finding Hamiltonian cycle is in $\mathcal{...
I was reading the first chapter of Robert Harper's Practical Foundations for Programming Languages in which it introduced abstract binding trees, aka abt. It seems pretty like typed lambda calculus. There are ground sorts, which are similar to ground types in typed lambda calculus. There are abstractions; they accept ...
There are two important theorems about LR(k) grammars and DCFL. Mentioned here. A language has an LR(1) grammar iff it is DCFL. A language has an LR(0) grammar iff it is DCFL and has prefix property. I have counter example for 2nd theorem, plz see if it is valid counterexample. (Ofcourse its not valid and I am wrong,...
Could you find an example of a complete $\mu$-recursive function that is not a primitive function?
An high level language such as C has many statements for decision and loops while an assembly such the MIPS' one has few. With slt, slti, beq, bne it can create all conditions. What are the advantages and disadvantages of reducing the decision statements?
To my knowledge, lots of languages can be classified as undecidable after applying Rice's theorem, for example {"M" | L(M) is regular}. But what I am not sure is, how to determine if a language is enumerable after applying Rice's theorem? I reckon we can examine that whether the M halt on some specific input, i.e. test...
Given a directed graph $G=(V,E)$ with a node labelling function $l:V\rightarrow L$, how would you encode this best for a neural network? If it simplifies the problem, we can add the following assumptions about $G$: $|V|$ is of fixed size $n$. Every node $v$ in $V$ has exactly two successors. $l:V\rightarrow L$ is inje...
I was applying state equivalence algorithm in this diagram. On input a and b Q1 and Q2 are going to different states. Which implies the states are not equal according to the state equivalence algorithm. But they are equal and we knows that , right ? Where am I going wrong ? Please help me how to prove these state are...
How can I prove that for every NFA with $\epsilon$ moves if $q_0 \in F$ then $\epsilon \in L(A)$? I can't think of any technique since it seems so trivial.
Write down the algorithm for bidirectional search, in pseudo-code. Assume that each search will be a breadth-first search, and that the forward and backward searches takes turns expanding a node at a time . Be careful to avoid checking each node in the forward search against each node in the backward direction. Artifi...
I would like to confirm below understanding, A binary tree is a tree data structure in which each node has at most two children, which are referred to as the left child and the right child. Insertion: In binary trees, a new node before insert has to specify 1) whose child it is going to be 2) mention whether new nod...
What is the difference between "connected", "strongly connected", and "reachable" in a graph?
What are the major causes that makes "Proving Programs correct", not a widely attractive subject? though from it's name, and from what we know from other disciplines (like mathematics) it looks like it should be on the top of the "must know list". And by the way I'm talking about "the real world", in practice.
I was solving a problem, where one part of it was the following: "Given a m-sided dice ([1,m] values) that will be rolled n times, calculate the possibility that the total sum of rolls will be higher than b" Initially, I implemented a naive exponential solution, discovering the whole state space (DFS-like). Then, I rea...
Basically, and as a simple method, we can access cache with Physical Address which is from the TLB. But, as another method, we can access cache with Virtual Address. But, in this case, if the cache is not fully flushed between context switch(other process's datas can be exist in cache), there is an aliasing problem. Sa...
A key difference between the edge-triggered and level-triggered interrupts is interrupt sharing. Level-triggered interrupts can be shared. Edge-triggered interrupts cannot be shared. I read the line above in an IBM document. Need help to understand why is it so.
Here is one discussion that says, "every DCFL has an LR(1), an LALR(1) and even an SLR(1) grammar." And wiki says, "a language can be generated by an LR(k) grammar if and only if it is deterministic [and context-free], if and only if it can be generated by an LR(1) grammar" Is the first statement in that discussion for...
Let's say I have an algorithm, MyAlgo(n) as follows: for i: = 1 to n do (something) Where in the i-th iteration, (something) executes i^2 steps. How can I determine an asymptotic tight bound (Big-Theta) on the running time of this algorithm? I know I have to determine Big O and Big Omega, but since the actual algori...
There is Lagrange's four-square theorem, which statea that Given an integer $N$, we can write $N$ as a sum of four squares $A^2+B^2+C^2+D^2=N$. How can I find a valid solution with time complexity of $O(1)$ or $O(\sqrt N)$? I only have to find one solution. Here is my $O(1)$ algorithm: while(count!=4){ solutio...
Recursion theorem (paraphrasing Sipser, Introduction to the Theory of Computation): Let T be a program that computes a function t: N x N --> N. There is a program R that computes a function r: N --> N, where for every w, t(<R>, w) = r(w) The proof is by construction. The program R thus constructed computes the...
I came across following TM state diagram accepting language $\{a^nb^nc^n | n\geq 0\}$ After trying out some valid and invalid strings of various lengths, I was surprised how it is designed to accept language exactly as specified. Now I have started wondering how I can come up with such TM design given any language spe...
Given a list of list of integers how to find pair of lists which have overlapping i.e. 1 or more elements are common. Is it possible to solve without having cartesian product of initial list with itself
I am looking for an algorithm to summarize a dataset in text form. If you consider below example, which shows sales figures for specific items in years 2001, 2002,and 2003: This has to summarized like below For year 2001 ERF had more sales, for year 2002 ADO had more sales and for year 2003 also ADO had more sales....
The heaviest-first algorithm is a greedy approximation algorithm that finds an independent set $S$ of nodes in a graph $G=(V,E)$, so that the sum of the weights of the nodes in $S$ is as large as possible. My question is that I want to find the time complexity of the following algorithm (when applied on $N \times N$ gr...
In my line of work, I have encountered the following variant of discrete knapsack and I was wondering if it has already been studied. E.g. We are given a set of 3 items (A,B,C). The goal is to maximize the value carried for a given weight constraint. The variant has the following additional constraints: Step 1: The fi...
Can anyone here give an example of DFA or NFA real time application? And, can I know what are complexity and decidability problems in real time application? Does every real time application have complexity and decidability problems?
Question Suppose there is a balanced binary search tree with n nodes, where at each node, in addition to the key, we store the number of elements in the sub tree rooted at that node. Now, given two elements a and b, such that a$<$b, we want to find the number of elements x in the tree that lie between a and b, that is,...
Let $G(V, E)$ be an undirected weighted (positive) graph. Given a path $s-t$ find the path that minimizes the maximum weight of any of its edges. This is the minimax path problem. It is know that a minimum spanning tree $T$ of $G$ gives a minimax path between every pair of nodes. After calculating the MST I want to be ...
I'm talking about Type-0 (Chomsky hierarchy) unrestricted grammar, where production rules of grammar are of the form $\alpha\rightarrow\beta$, where $\alpha,\beta\in N\cup\Sigma$. I can not find any example of real unrestricted grammar which produces a non-context-sensitive language (of words). While there are examples...
L = {M | M is a TM and there exists an input that the TM M accepts in less than 50 steps} I need to find a minimal class it belongs to between R/ RE/ co-RE/ not in RE∪co-RE. I managed to show that it is in RE with a TM. I think its not in co-RE, because it has to check every input to know wheter a TM M belongs to L. a...
I have a simple priority queue algorithm that I implemented, and I doubt it's new but I haven't been able to classify it. Wondering if I could get some help with classifying it! Once I classify it I can read more about how to implement it properly, etc. Assuming the implementation is sound, I am also trying to figure o...
How do you convert the following algorithm from the iterative paradigm to the recursive paradigm? Input: array $A[1],\ldots,A[n]$ Output: last index $i$ such that $A[i] = i$, or $-1$ if none Algorithm: $index \gets -1$ For $i \gets 1,\ldots,n$: $\quad$ If $A[i] = i$: $index \gets i$ Return $index$
Suppose you are given a 3-D sphere of known radius. Input of n points is provided, which have been selected randomly on the surface of the sphere. Each input field consists of a polar angle theta (Θ) and azimuthal angle phi, Φ (in spherical coordinate system). Now I need to find a new point (n+1) such that this point h...
let's say L is a regular language. And there in an NFA automata with epsilon moves A,in which for every accepting state δ(q,σ)=Ø. How can I prove that there must be an automata A as defined for L?
I need to generate/enumerate isomorphism classes of vertex-rooted graphs with the following properties. Let $\Delta$ be the maximal degree (say 3 for subcubic graphs) and $r$ the maximal distance of a vertex from the root (something like radius, even though the formal definition of radius of a graph is different). Note...
We are given positive integers $n$, $m$ and a set $S$ of subsets of the set $\{1,2,...,n\}$ with $|S| = m$. For example: $n = 5,\,\, m = 4,\,\, S = \{\, \{1,2\}, \{1,3\}, \{4,5\}, \{2,3\} \,\}.$ What is the fastest way to find the minimal subset $S'$ of $S$ such that the union of sets in $S'$ is equal to $\{1,2,...,n\...
My lecturer for information theory says that "Huffman coding produces efficient codes but is unsuitable for text files where the letters are represented by a fixed length ASCII code". I do not understand this statement. I understand that as you change the text file, you'll have to update the probabilities and thus the ...
How can I formally define * for a dfa with multiple initial states? I know that the δ formal definition for NFA is δ: Q × ∑ → 2^Q and for DFA it's δ : Q × Σ → Q but what should I do if there is multiple initial states?How can I take into consideration all the options for the initial state?It seem like it should combine...
Suppose i want to trace an algorithm (think of it as a flowchart) to understand how it works, i need an input(s) for this algorithm, the question is: how can i determine the right input(s) that goes through all the cases ? Is there any "scientific" method to determine this input?
I am a student and I was reading Numerical Analysis by Burden. In one of the exercises, I have to calculate $e^{-5}$ in two ways. The first is using the Taylor's series for $x=-5$, $( e^{-5} = 1 - 5/1! + 5^2/2!-...)$ and second way is calculating $e^5$ and then $e^{-5}=1/e^5$, again using Taylor's series but this tim...
I can't comment on this question, so I ask it here as a new question: Ricky Demer states there in a comment to the first answer "[...] since FPSPACE can give exponentially long outputs [...]" How can this be? How can an algorithm in FSPACE give an exponentially long output? Does this mean, that we do not count the outp...
So given an undirected graph stored in form adjacency list using vector<int> adj[], I have to print the Euler Cicuit. Every edge is given as follows a bmeaning an edge from a to b. But the problem is I have to follow the given order of input of vertices connected by an edge and change the order whenever it is compulsor...
I know of two translators LTL -> deterministic Rabin automaton: Rabinizer3 ltl2dstar They produce deterministic automata, which can be much larger than their possible non-deterministic variants. Is there a translator LTL -> non deterministic Rabin? (my synthesis tool could handle small non-det Rabin automata but not ...
I came across following intuitive rules to convert basic/minimal regular expressions directly to regular grammar (RLG for Right Linear Grammars, LLG for Left Linear Grammars): Then I came across many examples that claimed to use these rules to prepare regular grammars from given regex. However I was not able to unders...
For chaining two points A and B A(x1,y1) at index i in array B(x2,y2) at index j in array //condition if ( i<j and x1<=x2 and y1<=y2 and !(x1==x2 and y1==y2)) then A and B are in a increasing sequence (chain) For example: A = { (0,0), (1,0), (1,1), (2,1), (2,0)} longest sequence (cahin) is = {(0,0), (1,0), (1,1),...
First question in the computer science section. I am currently working on a solution that optimizes decision tree redundancy. the following is an example of optimization: | D1 | D2 | Outcome | | true | false | Yes | | false | false | No | | true | true | Yes | | false | true | No | wh...
Here is my situation. I have a grid-type graph with obstacles. Every move (horizontally, vertically or diagonally with a range of 1) has a cost of exactly 1 (the graph is not weighted) provided that neither the source or the destination is an obstacle. I need to, provided a starting node (a square), find any path that ...
Please consider the following probability density function of two variables. \begin{eqnarray*} f(x_1,x_2) &=& \begin{cases} 2(x_1+x_2) & \text{for} \,\, 0 \le x_1 \le x_2 \le 1\\ 0 &\text{ otherwise } \\ \end{cases} \end{eqnarray*} I would like to generate two random values $X_1$ and $X_2$ such that there d...
I have come across a proof where a certain function ("compute a straight skeleton") is shown to take $\Omega(n \log n)$ time by reducing the problem of sorting to it. The overhead for the reduction itself is linear, thus negligible. Now my question is: is this a valid argument? The original proof appears in: Huber - C...
I read some examples online on this subject, but none of them really gave an explanation. When I visualize the number line all I can see is evenly spaced numbers, I'm not grasping the notation of "uneven spacing" when It comes to plotting the floating point values from a machine's perspective. Perhaps I am thinking abo...
I'm just reading a textbook in mathematical logic, as following: What is the precedence to consider the equality and satisfiability operators in the equation pinpointed in red?! In other words, which of following cases right: (A \sat x) = y[s] or A \sat (x = y[s])
I want to ask how to solve this problem.. in this graph we have vertex and edge with two value the quality and distance.. there are 3 path in this graph 1->2->6 distance is 10.. 1->4->6 distance is 9.. 1->3->5->-6 distance is 18.. my concern here is the quality of road,, 1 is the best road quality 2 is for ave...
I am trying to understand how pure Monte Carlo tree search (https://en.wikipedia.org/wiki/Monte_Carlo_tree_search) handles games where random playout will likely result in a loss easily avoided by other types of agents. For example, imagine a hypothetical game with a single player. At game start, the player can choose ...
I'm learning about asymptotics and time complexity. The algorithm I'm analyzing has a for loop that starts at $i = 1$ and ends at $\left \lfloor \sqrt n \right \rfloor$. The body is said to run in $n-i$ steps. I'm trying to do a summation from $i=1$ to $\left \lfloor \sqrt n \right \rfloor$ to come up with a Big Theta,...
I have recently started working on the Object detection using deep learning. I have understood the basic steps of object detection are: Input Image -> Object proposals -> Feature Extraction -> Training. I have successfully implemented my own code up to the Object Proposal extraction. Now I want to use deep learning her...
There is a sequence of $n$ sets, each set contains a constant number of constant-size vectors, e.g: $\{M_{1,1},M_{1,2},M_{1,3},M_{1,4}\}$ $\{M_{2,1},M_{2,2},M_{2,3},M_{2,4}\}$ ... $\{M_{n,1},M_{n,2},M_{n,3},M_{n,4}\}$ The task is to pick, from each set, a single vector, such that the sum of vectors and all the partia...