instruction stringlengths 35 29.1k |
|---|
We know that MAJSAT is PP-complete. Is it generally true that given an NP-complete problem, its majority variant is PP-complete? For example,
MAJ-Set-Splitting: are the majority of partitions of items going to split the sets?
MAJ-Subset-Sum: does the majority of partitions of items have a sum of exactly K?
etc...
|
As the above question says.
I'm wondering if a transition system is the same as a program graph or they are two different things?
Thank you.
|
Many real world optimization tasks (especially black box optimization) have objective functions, which are quite expensive to evaluate. For example to find the optimal shape of an airplane wing, a computer model of the wing needs to be constructed and then a large physical simulation needs to be executed, usually takin... |
Show that if $G$ is a graph with $|E| \geq 2|V|^{3/2}$, then $G$ must contain a $4$-cycle
Can someone explain/point me in the right direction on this?
Let's say we say $|V|= 4$, using the equation above we get $|E|= 16$.
I drew it out and I was unable to come up with $16$ edges. Do I completely misunderstand the grap... |
In Nisan and Szegedy's 1994 paper "On the degree of boolean functions as real polynomials"[1] Lemma 3.8, how does proof work for $\widetilde{\deg(f)}\geq \sqrt{\,\tfrac16\mathrm{bs}(f)\,}$? It clearly works for $\deg(f)$ and only this portion is shown in Jukna's book [2, Theorem 14.11]. Why does the proof work for $\wi... |
Consider the following traditional integer knapsack problem:
$\max \sum_{i=1}^k p_i \cdot x_i\\
\text{s.t.} \sum_{i=1}^k w_i \cdot x_i \leq W \\
x_i \in \{0,\ldots,k_i\} \text{ for each } i$
Now consider a laminar family $\mathcal{I}$ of sets, i.e., a collection of subsets of $\{1,\ldots,k\}$ such that for each pair $I... |
I am given 2 list of admissible values for a graph, and the graph with the real cost to each of the nodes.
Am I correct in thinking the way to see which one is admissible is add up all the values of the h(n) and compare it to the total real cost of the graph?
Example:
h1 total = 681 h2 total = 732
Total cost of graph... |
In the paper "Item-Based Collaborative Filtering Recommendation Algorithms" In section 3.2.2 about regression, it is said the the user's actual rating of item N (Ru,n), is replaced with an estimate of that rating (R'u,n) via linear regression. The linear regression model seems to be mapping rating of the target item (... |
Currently working on a past exam question which tells me to compute the product of two transition systems and then use DFS to find the reachable states of the product. I learnt how to compute the product of transition systems by looking at pages 43 and 44 in the "Principles of Model Checking" book by Christel Baier and... |
I have an English dictionary (text file) and the frequency of 2-grams, 3-grams and 4-grams as the beginning of each word. I need to write an algorithm that, with a given word, calculates the possible anagrams (which have to be into the dictionary) based on transitions probability (my assignment requires that I use this... |
Consider an integer ( of arbitrary length ). To find the number of digits it has, here is a known simple algorithm
count = 1;
while ( (value = value/10) ) count++;
Now, what is the time cost of this algorithm? If we assume that k is the number of bits ( not digits) required to represent the number, then it is O(k).... |
Suppose for simplicity we start off with starting amount $S = 1$ and we wish to reach target amount $T$. To do this we sequentially wager a certain amount and then win that amount with probability $p$ and lose that amount with probability $1-p$ ($p$ is known). We wish to reach target amount $T$ in the minimum expected ... |
I have a string of digits $S$ and K queries $l_i, r_I$ - get the sum of all numbers contained in segment of $S$ from $l_i$ to $r_i$.
For example, $S$ = 1034, $l = 1$, $r = 3$. So answer will be $1 + 10 + 103 + 3$ (note: $03$ was not counted, as it starts with $0$)
It has an obvious solution with $O(K\cdot N)$ performan... |
I'm looking at implementing type inference for a Hindley-Milner type system, and before I have even started to implement the Damas-Milner algorithm, while working through some examples, I hit some stumbling blocks.
I'm trying to follow some notes on the algorithm. Given the following program:
let id x = x
in id id
I... |
I have been reading a lot of papers by John McCarthy lately. As early as 1963, he developed the situation calculus, but then starting in 1987, he developed what came to be known as the propositional logic of context (PLC) (McCarthy, 1987; McCarthy, 1993). Surprisingly, he doesn't really describe the relationship betwee... |
Forgive my ignorance, but I am very new to the publishing process in Computer Science. I have some research that I have done involving analyzing data formats used in web-based image processing applications being presented in various IEEE papers. Some are conference papers and some actual IEEE transactions. They all see... |
I'm interested to find the fastest possible way to find the first element of an intersection of two integers arrays (first match)
Looking for the 'fastest' algorithm I have seen different methods with different time complexities (to calculate the arrays intersection)
i.e: $O(N+M)$, $O(N * log(M)$,...
Also I have seen s... |
I'm still a beginner in the quantum aspect of computer science (self-studying). So please bear with me if this may sound like a stupid question.
I know Hadamard gate transforms qubit into a superposition state with $\frac{1}{2}$ chance that the outcome would be 0 or 1 when the wave function collapses:
$$\frac{\left|0\r... |
[Reposted because the original question was deleted by the poster.]
I'm looking for a way to add additional clauses (and maybe additional variables) to an already existing SAT instance so that solutions with non-unique assignments for certain variables are invalidated.
Currently I enumerate all the original solutions, ... |
Having found one minimum vertex cover of a connected undirected graph, is there a known polynomial-time algorithm for finding all the other minimum vertex covers of the graph, or is this problem NP-complete as well?
Another question: what other ways (not necessarily polynomial-time) of finding the other MVCs when havin... |
Suppose I have $k$ players $P_1,\dots,P_k$ that can communicate with each other directly by sending messages.
For defining the inputs, we consider a fixed set of names $N$ which are integers in $[1,k^2]$.
The input of each player $P_i$ consists of a unique name chosen from $N$ and a set $X_i$ of (up to $k-1$) other i... |
I have tried to make a Post machine for that all words of the form $a^nb^n$ by the following steps.
add a marker '#'
read first 'a'
read next 'a's and add them
read first 'b'
read next 'b's and add them
read '#' (that we added in the first step)
repeat steps while input tape is not empty
but this algorithm also accep... |
You and a friend lost each other on the line to a concert, and neither is sure which of you is further ahead. Formally, each is at some integer coordinate and may only walk towards a higher coordinate or stay in place.
Assuming you and your friend are following the exact same algorithm (and no, you may not say "if (nam... |
When you pick up some reading about CSP the main focus is how to solve it. My goal is to compute/decide if CSP is ambiguous (has 2 or more solutions) or not (has 1 solution).
Of course brute-force approach would be to solve it and see the outcome. But I am looking for something simpler (read: way faster).
Background: I... |
I need to implement LU-decomposition in Kaira. In Kaira the programmer writes the "parallel part" as the diagram similar to Petri Nets.
So, could you, please, recommend me some parallel algorithms for LU-decomposition which are really easy to understand and implement? The low difficulty of the implementation has the hi... |
Could somebody please tell me if there is a way to create a DFA with 8 states for the regular expression $$(111 + 11111)^*$$
I was able to create a DFA with 8 states, but the place I saw the question has answer as 9 states. And if possible, could you please show me the DFA.
Thanks
|
In the article ["Triangulating Planar Graphs While Minimizing the Maximum Degree"] by Kant and Bodlaender [1], Section 4 briefly mentions the extraction of elementary cycles (no repeating edges) from what I assume is an undirected graph $H$. It has the following to say:
$H$ is planar and bipartite.
...using a simple m... |
If the input for a subset sum problem is a multiset (with repetitions) instead of a set (without repetitions), e.g.
Set $a = \{1282,1588,3590,5138,5505,5777,6198,7962,8827,9838,10137,12037,15296,16089\}$
Multiset $a = \{1282,1282,3590,3590,5505,5505,6198,6198,8827,8827,10137,10137,15296,15296\}$
(above sets are samples... |
I have gone through few tutorials about how to perform range updates and range queries using Binary indexed tree. I have even gone through Range update + range query with binary indexed trees . I'm unable to understand the need of second tree. In the tutorial http://programmingcontests.quora.com/Tutorial-Range-Updates-... |
So far I've read traversal techniques $(Pre-Order, In-Order, Post-Order)$ on binary trees. But In exam I've thrown up with a question, which requires me to find in-order traversal of a ternary tree. I got confused, Is there any generalized steps that we can follow to find traversals for any $m-ary$ tree.
|
Wikipedia claims that "each finite segment of noncomputable sequence of integers is computable".
It continues to clarify: For any noncomputable function, "for any given value of n, [...] a trivial algorithm exists (even though it may never be known or produced by anyone)".
While I do believe this for the given example ... |
I am trying to understand Licklider’s idea of man-machine symbiosis in the real world, does anyone know of any real world examples of the use of a man-machine symbiosis?
Would it be correct to say that safety critical systems such as an aircraft flight control system is an example of this, due to it fitting into the fo... |
Can anyone please tell me the difference between them?
A brief definition of Cognitive Computing would appreciated.
Also how does cognitive computing relate to neural networks?
|
Sometimes I read about the term "scheduler" (offline-scheduler, online-scheduler,...) and then I see terms called "scheduling" (offline-scheduling, online-scheduling, preemptive scheduling, non preemptive scheduling). Currently I think, that scheduling is the real work and scheduler is just a umbrella term. Is that cor... |
In my class we were trying to derive Shannon's Source Theorem, first by proving the equivalent form in a weaker version.
The question is: Consider a biased coin with probability of heads $p \geq \frac{1}{2}$.We want to transfer this information with the code of minimum expected length.
To prove this, we can construct ... |
I was reading Tuple Relational Calculus from a textbook.
I came across this query:
For every project located in 'Stafford', list the project number, the controlling department number, and the department manager's last name, birth date and address.
The solution query is:
{p.Pnumber,p.Dnum,m.Lname,m.Bdate,m.Address |
... |
$\newcommand{\bs}{\mathrm{bs}}$What is the largest gap known between block sensitivity ($\bs(f)$) of a boolean function ($f$) and degree of a polynomial ($\deg(f)$) that represents/approximates it?
We know of lower bound $$\bs(f)\leq c\deg^2(f)$$ for some $c>0$. Is there a Boolean function that achieves this separation... |
I get the main ideas of Turing machines. But I can't construct a Turing machine to solve a given question.
The question I'm trying to solve is "Construct a Turing machine that recognises the set of all strings that contain an even number of $1$s."
How can I think about all the cases? Is there a way to do it?
|
Suppose we have given $\Sigma=\{a,b\}$, Which one of the following set is not countable
(a) Set of all languages over $\Sigma$
(b) Set of all regular languages over $\Sigma$
(c) Set of all languages over $\Sigma$ accepted by Turing machine
I've read some techniques to find answer to the question like whether
Is the ... |
The Dual of a Boolean function $F(x_1, x_2, ..., x_n)$, written as $F^D$ is the same expression as that of $F$ with $+$ and $.$ swapped. $F$ is said to be self dual if $$F=F^D$$
How can we count total number of self dual function with $n$ Boolean variables.
I know For $n$ variables total $2^n$ minterms or maxterms are ... |
A file is downloaded from a server and is represented as $a = \{0, 1\}^n$. The server has that file as $b = \{0, 1\}^n$. We want to ensure a degree of certainty that $a=b$, using a randomized algorithm.
So below is the procedure referenced from this lecture pdf .
I can't get my head around why some of the steps are ne... |
I want to prove that unique(reverse(L)) = reverse(unique(L)) where L is a List.
List has the following constructors:
[] : -> List
[e] : Element -> List
cons(e, L) : Element x List -> List
I defined unique and reverse as follows:
unique : List -> List
reverse : List -> List
unique([]) = []
unique([e]) = [e]
unique(cons(... |
Schwartz–Zippel lemma can solve the polynomial identity testing in expected poly-time. As far as I know, there is no deterministic poly-time algorithm for the problem, but we do not know if the problem is NP-hard or not, right? Is there any NP-hard problem that can be solved in expected poly-time using a randomized alg... |
Function 1: $2^{\log_*n}$
Function 2: $\log(\log n)$
The first function is 2 to the log-star of $n$, the second function is log of log of $n$.
What I need to know is which one is Big-Omega of the other one, which means, which one grows faster. How can I figure that out? I know the definition of log-star (iterative loga... |
Problem: Longest Path
Input: An undirected graph $G=(V,E)$
Question: Is there a path of length at least $\frac{|V|}4$?
I know that in order to prove the simple version of $k$ longest path, we reduce the Hamiltonian path to longest path. How we can prove the $NP$-completeness in this special case? Should I use a reducti... |
I'm tempted to phrase this question notationally, but I may be jumping the gun on the exact problem definition as well. So let me start with the real-world scenario and work forward from there.
You're given a list of media items--songs, let's say--to play. You must play every song once, with no repetitions, but you get... |
Assuming an adjacency list as data structure of a directed Graph, it is not completely clear to me how "contraction of an edge" is defined.
Let me cite the definition I do have at hand:
Source: JAMES B. ORLIN - A FASTER STRONGLY POLYNOMIAL MINIMUM COST
FLOW ALGORITHM, Section 4.1. Contraction
[...] any edge, say $(k, ... |
I have a very silly question, as I am reading through all the proofs showing a problem is NP hard, one of the techniques is by showing an already-proven NP complete problem is a special case for that problem.
I am wondering shouldn't that be another way around? I mean if you show your problem is a special case of a NP-... |
I'm going camping. While I'm away, I plan to eat only s'mores, which consist of 20% chocolate, 50% marshmallow, and 30% graham cracker. I did a thorough clean-out of my pantry, which revealed multiple packages of each of these ingredients in various sizes.
I'll need at least 5kg of food to get me through the weekend, b... |
In the book "Advanced Data Structures", Chapter 2 ("Search Trees"), the author, Peter Braß, mentions two versions of binary trees (emphases in the quoted text are mine):
"...two different models of search trees, either of which can be
combined with much of the following material, but one of which is
strongly pref... |
Lets assume we have an array with 100 numbers and we want to find how many '1's there are. Best solution will be reading every numbers and counting. Now we get a hint that there are 50,51 or 52 '1' in the array, can this information help us count the '1's somehow?
What bothering me here is that we have a lot of informa... |
If you were given a "new operator" Wh and a formula a Wh b meaning that a holds for at least as long as b does (in all executions). How would you define this operator in CTL? This is an exercise question in the book "Principles of Model Checking" (page 303) if anyone has a copy.
My first thoughts are that I'll defini... |
Why we use context-free grammar for parsing? Why not regular expression and not context-sensitive grammar?
|
Suppose that we have $n$ points in 3D.
I want to find a plane $ax + by + cz + d$ such that sum of all the orthogonal distances to the plane is minimum.
I read this article. However, I need an algorithmic solution.
So far, this answer from SO was the simplest one. However, this solution projects the points onto $z=0$ pl... |
Given a problem, is it possible to prove what the best worst-case efficiency of an algorithm to solve this problem would be?
For example, lets take the problem of sorting an array.
Many of the simpler sort algorithms have a worst-case efficiency of $O(n^2)$ such as Quick Sort and Bubble Sort. However, there are other a... |
This is the problem:
I have some strings stored in the database. Each of the strings can be seen as a set of tokens separated by comma with no repetition (I mean a token cannot appear more than one time in a string).
I want to know if a new string matches any of them without taking token order into account.
The metric... |
According to these scribe notes (and a paper), 3SAT-5 is NP-hard. The problem is defined to be: given a 3SAT formula, each variable occurs in at most 5 clauses. It is also proven that 3SAT-4 is NP-hard.
What is the computational complexity of 3SAT-$k$ for $k \le 3$?
|
Suppose that I have 2 parties Alice and Bob. Alice gets an input $X$ and Bob gets input $Y$ where $X, Y$ are $n$-bit strings. In the classic communication complexity world, computing a function such as disjointness of $X$ and $Y$ requires $\Omega(n)$ bits assuming the input distributions of $X$ and $Y$ are chosen to be... |
Is there an example of real polynomial representation of a Boolean function with $4$ variables whose polynomial degree is $2$ that depends on $4$ variables?
|
I've been looking for a reference for the above question.
As far as I know the answer is:
If we can make a solver that is efficient for all randomly generated instances, it should be efficient for any instance.
i.e. if we make a solver that doesnt rely on any inherent structure, it will always be efficient.
Is this co... |
Is it possible to have a rounding error when you convert a floating point number which can only be in increments of 0.01 to an integer by multiplying by 100 first? I would think that the lack of precision in representing floating point numbers is so small that it would never cause a rounding error when you only have t... |
There is a graph G, which is not known to me. Instead I am given the multiset of all graphs that are obtained by deleting a single vertex from G. My task is to figure out, from all of these subgraphs, whether the original graph G has a Hamiltonian cycle.
My original idea was to assert that, if all of these subgraphs h... |
I am reading Algorithms 4th edition by Robert Sedgewick and am stumped at a particular problem. On page 460 of the book the author is describing a technique to hash strings and use prime numbers for modular hashing. Starting from the fourth line:
If R is greater than any character value, this computation would
be equ... |
The problem is rearranging furniture in a flat.
We are given rectangular rooms of natural width and height with doors between them, (the walls have no width)
and rectangular furniture at starting positions and goal positions.
The operations are moving each piece of furniture one block each direction (up,down,right, lef... |
I might have gone too deep in my search after the answer which might be much easier than what I figured.
Essentially I wanted to figure out how I/O are executed in a Von Neumann machine, but more I read, the more confused I became.
What they are saying in "Introduction to computing systems" (Patt and Patel) and other w... |
I have been developing a GA for one of the projects I'm working on. I have everything implemented with no problems and I really like how GAs work in general, it's a really cool and relatively new concept. However I'm wondering which specific algorithms I should use for selection, crossover and mutation.
I understand th... |
As a homework we had to prove a set of upper bounds on a given probabilistic algorithm to find a satisfying assignment for a satisfiable 2-CNF formula. The problem is reproduced below. I'm sorry for all the incorrect language; English is not my native language and scientific language is especially difficult for me.
Ob... |
Suppose that I have a binary tree with $N = 2^h - 1$ nodes, initially all nodes are unmarked Over time via this process nodes became marked.
Suppose that nodes have unique identifiers in range of $[1,N]$ each time, I send you the identifier of a node. when you receive a sent node. you mark it and also invoke the follow... |
I read the wikipedia page on the Longest Common Subsequence problem to understand the LCS Table approach, but it seems to result in different solutions given different orders of the original sequences. For example, the traceback table generated here is correct, since the longest common subsequence of AGCAT and GAC has ... |
What does rounds in communication complexity mean in setting of deterministic/non-deterministic $2$ party communication or multi party setting?
Is it number of bits exchanged between players participating/involved?
In multiparty setting what does simultaneous and non-simultaneous messaging means? Is it related to roun... |
Some days ago i've discovered that in most of what we call "models of computation ", we can possibly model tasks other than computation itself . For instance, in lambda calculus we can model control flow tasks ( modeling if, while, forif controls) with function applications, whereas in Turing Machines the control flow ... |
I'm trying to write an algorithm to print all the paths from point (0,0) to (n,n) in a grid.
The only possible moves are right and up.
Also, you can't move below the diagonal y=x. e.g if you're at (1,1) you can only move to (1,2), but not to (2,1), since it's below the y=x diagonal.
I wrote an algorithm that calculates... |
I have been playing Manufactoria, a game in which one has to build a production line that tests/modifies "robots". Each robot has a "tape" where each cell is colored either red, green, blue or yellow. The production line can test/modify a robot by popping colors off the start of its tape, by moving the robot to differe... |
What is best (in terms of time complexity) known algorithm (approximate or exact) for finding diameter of a large undirected graph?
The diameter is defined as longest of shortest paths between any two nodes.
I know that naive solution takes O(nm) steps and is basically taking pairs of all vertices and finds distances b... |
Given a directed graph $G = (V,E)$ with positive edge weights, find the minimum cost path between $s$ and $t$ that traverses exactly $k$ edges.
Here is my attempt using a flow network:
\begin{align}
\min \sum_{(i,j) \in E} c_{ij}x_{ij}
\end{align}
\begin{align}
\sum_{j \in V} x_{ji} - \sum_{j \in V} x_{ij} &=
\begin{c... |
I'm trying to compute $g^m$ mod $n$ where $m,n$ are 1024-bit numbers. The method I want to use is fixed base exponentiation with precomputations, also known as fixed-base windowing.The paper I'm following is Brickell et. al. "Fast Exponentiation with Precomputation: Algorithms and Lower Bounds" which can be found here.... |
How can we perform time complexity analysis on a function that has no loops?
int somefunction(int param) {
if (something)
do this;
else
do this;
}
Would the time complexity of this function change depending on how many times the function is called within a program? I currently believe that the time complex... |
Lets consider a new operator $B$ where $a B b$ means "in every execution, if $b$ holds some time, then $a$ does so before it" and we're asked to define it in CTL.
My working: the system can only fail if $b$ holds. If $b$ doesn't hold, we're in the clear - so one possible path could be $(¬ □ b)$. The only other path th... |
$$
a_i * x_i + b_i * x_j = N
$$
$\text{given } a_i, b_i, N \in \mathbb{N}$
i want to find a solution where $x_i, x_j \in \mathbb{N}$ or output if there exists none.
What is the fastest way to calculate this?
|
" The 8080 was an 8-bit CPU, meaning it processed 8 bits of information at a time. However, it had 16 address lines coming out of it. The ‘‘bitness’’ of a CPU—how many bits wide its general-purpose registers are—is important, but to my view the far more important measure of a CPU’s effectiveness is how many address lin... |
I'm working on a dependency managemen solution for a JavaScript. I'm trying to find the best pattern for grouping similar items in a graph into their own 'modules'.
Given a dependency tree like shown below, I have a 'main' module ( app ), that has 5 children ( login, dashboard, form, builder, users ). These children ... |
I am reading about this in the context of the K semantic framework. I keep encountering terms such as rewrite-term and rewrite logic. My main aim is to understand what is K doing and how it works, so maybe this would be a bit off-topic.
|
Suppose I have the following inputs:
1110
1111
If I perform a logical right shift by 2 on each, are the 5-bit outputs these:
00111
00111
or these:
01110
01111
If it's neither, then I'd appreciate an explain why and what I've done wrong!
|
For the recurrence relation
$$T(n) = 16T(n/4) + n!\,,$$
I have found that $T(n)\in Θ(n!)$.
Can this be deduced using the Master Theorem?
|
I have a text file with all possible 5-grams (26^5 = 11.881.376) organized in rows as:
aaaaa
aaaab
aaaac
aaaad
.....
and I have a txt file (organized in rows) with all English words. I have to find how much time every 5-gram is at the beginning of a word. I'm using this code:
def frequency(five-grams, dict):
result... |
I've been using kernel ridge regression. My problem requires predicting some values which I know to be integers. By rounding the results to the nearest decimal, I get excellent results.
However, If there's potential for more improvement - I'd like to try it!
I recalled that the $l_1$ penalty usually results in fewer sm... |
I've been trying to make a CFG, a pushdown automaton and a regular expression for the language
$\qquad L(M) = \{ww : w \in \{a, b\}^*, |w| \text{ is even}\}$.
I understand how the reverse of the string work, that is
$\qquad L' = \{ ww^R : w \in \{a, b\}^*\}$,
what i am asking for is to do it this way , i have alread... |
I am trying to find a $\Theta$ bound for the following recurrence equation:
$$ T(n,p,k)=T(n,p,k/2)+T(n,p/4,k)+T(n/8,p,k)+npk $$
npk
/ | \
/ | \
T(n,p,k/2) T(n,p/4,k) T(n/8,p,k)
the max height of the recursion tree is $ \lo... |
What is the definition of the complexity class $D^P$?
In recent papers I sometimes read $D^P$ but could not find a definition of it. Unfortunately Complexity Zoo does not give one, too.
Is it the same as: "A language L is in the class $DP$ if and only if there are two languages $L_1\in NP$ and $L_2\in coNP$ such that $... |
Consider the following problem:
Input:
integers $n > m > k$;
$n$ numbers $0 \leq p_1, \ldots, p_n \leq 1$;
$n$ numbers $r_1, \ldots, r_n$ where ($r_i \geq 0$).
Let $X_1,\dots,X_n$ be $n$ independent random variables with distribution $X_i \sim \text{Bernoulli}(p_i)$ and define $Y_i = r_iX_i$.
Output: a subset $S$ o... |
I am reading this text book and it says that stay put turing machine recognizes the same languages as regular turing machine by just adding transition functions (without adding any new states or symbols). I am trying to figure that out.. But so far, no luck. I think the key here is "recognizes" rather than "decides"? H... |
A quantum computer can possibly calcluate computable functions faster, but it can't calculate functions which a normal computer can't calculate?
If a function is not computable? Does this mean it will never be computable? Even if we change the axioms which our mathematical system is based on or we find a contradiction ... |
I have seen in some ML tutorial that functions of the form $f(\vec x) = \vec x^T A \vec x$ ($\vec x \in \mathbb{R}^n$ and $A$ is an $n\times n$ real matrix) can be PAC learned.
Can anyone point me to a reference to this fact?
|
From Wikipedia, Regular Language
All finite languages are regular.
and Also Regular Grammar, is a way to describe the Regular Language
Right regular grammar (also called right linear grammar).
Left regular grammar (also called left linear grammar).
From Wikipedia its Example : a* b c* can be described as Regular G... |
I'm working through Knuth; The Art of Computer Programming, Vol. 4 Fascicle 0 and I'm having a little trouble making sense of the method Knuth describes for computing an orthogonal latin square.
The text of Knuth's explanation is available in this PDF, starting on page 16 (pp 6) and continuing to the next page: http://... |
I've been trying to make a CFG, and npda/pda for this language (to construct an npda for accepting the language):
L(M)={ww:w∈{a,b}∗,|w| is even}.
i had already solved the reverse of the language (like this):
L′={wwR:w∈{a,b}∗},
Please check this snapshot to know what i am asking to do ! (L') : http://i921.photobucket.c... |
currently i'm preparing for an exam in a high performance computing course. In this course we discuss several common parallel algorithm patterns called "dwarfs". The first dwarfs we had was the "dense linear algebra", so basically matrix multiplication. In one of the first slides there is a example for a basic matrix m... |
According the Peter Linz Book, am a confusing about the two example
the Grammar G1 = ({S},{a,b},S,P1) with P1 given as
S -> abS|a
and G2 = ({S,S1,S2,},{a,b},S,P2)
S -> S1ab
S1 -> S1ab|S2
S2 -> a
G1,G2 is regular..
i generated from G1 Language= {ababa,...} and it Regular expression (ab)a
and from G2 = {aabab} is that... |
As the title says, what is complexity of checking whether a natural number is a perfect square?
|
I'm studying with "Numerical Solution of Partial Differential Equations by K.W.Morton and D.F.Mayers". On page 25, it says "2(add) + 2(multiply) operations per mesh point for the explicit algorithm (2.19)", but it seems 3(add) + 2(multiply) to me, how did I get wrong?
(2.19) $U_j^{n+1}=U_j^{n}+\mu(U_{j+1}^{n}-2U_j^{n}... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.