instruction stringlengths 35 29.1k |
|---|
From my understanding(correct me if I am wrong) when I read data from RAM memory it is copied into processor cache and than it is copied into register to be used by the processor. When I create data (like variable) is it first created in register and than copied to cache and from cache to RAM or is it directly created ... |
The regularity condition of case 3 of Master Method says that $af(n/b) < cf(n)$, for $c < 1$.
How to devise a recurrence relation that satisfies all other conditions of case 3 except the regularity condition?
|
I am using a transmission system that uses a Bloom filter (this part is out of my control). I want to send a small amount of data (32 bits) using this system.
For each bit [0,31], I add its index to the Bloom filter if the corresponding bit is set. The Bloom filter is then transmitted without error and the recipient te... |
I have the following question:
Let $a,b,c,d$ be four natural numbers with $a \leq b$ and $c\leq d$.
I have written a program that produces a list, which has as entries all 2-tuples $(x,y)$ with $x\in [a..b]$ and $y \in [c..d]$.
Now, I have a new list, let's call it list_1. It consists of elements indexed by the $(x,y)$... |
Let $M$ be a matrix of height $h$ and width $w$. Each entry of $M$ is an integer.
There is a snake that starts from the "left side" of $M$, and its goal is to reach the "right side" of $M$. To get from one side to the other, i.e. to move from column $c$ to column $c+1$, the snake must choose an integer from both. Whate... |
I'm trying to implement a feedforward neural network using a graph.
The thing is: I haven't found any example in which is used a graph data structure.
So far the examples I've found used arrays.
Can anyone please point me in the direction of some literature on the topic or some tutorial?
|
A partition function computes the number of ways an integer $n$ can be represented as the sum of $m$ other integers. For some value $n$, we have a partition function $p(n)$.
These were studied extensively in mathematics by MacMahon, Hardy, Littlewood and Ramanujan. Rademacher provided a way to approximating $p(n)$, imp... |
Suppose I have a matrix $A$ with its entry $A_{ij}$ denoting some kind of distance between class $i$ and $j$, is there a feasible algorithm for computing a binary coding for all the classes, such that the Hamming distance between code word for $i$ and $j$ is (roughly) proportional to $A_{ij}$?
A related question is tha... |
Can anyone shed some light on how the VC Dimension affects the sample complexity bounds of infinite hypothesis classes with real-valued outputs in PAC learning, or how to calculate the sample complexity bounds of said classes with some other measure of the class's 'complexity'?
I'm studying machine learning theory, par... |
Can't seem to figure out the IP formulation for this.
Question
Suppose there are $n$ people connected in a circular fashion as demonstrated by the diagram.
Individuals need to send packages to each other but can clearly only pass the packages in a clockwise or anticlockwise direction. Each person has at most one packa... |
We have $16$ words of given length, let's say $W_1,...,W_{16}$ and I want to make an one dimensional matrix that will contain all the possible sums of $W_i$'s, for example:
$W_1,W_2,...,W_{16}$
$W_1+W_2,W_1+W_3,...,W_1+W_{16}$
$W_2+W_3,...,W_2+W_{16}$
and so on, all the pair sums...
then all the three sums
$W_1+W_2+W_3... |
I need to compute the permanent of a 10*100 matrix. All the entries are either 0 or 1.
All I know is that I can compute the permanent of all 10*10 submatrices and then sum it to get the desired answer. But this involves 100C10=10^13 operations which is too much in my case.
Is there a better algorithm for this task?
|
I was solving this question. It is as follows
Joe picks an integer from the list $1,2,\cdots,N$ with a probability $p_i$ of picking $i$ for all $1\leq i \leq N$. He then gives Jason $K$ attempts to guess his number. On each guess, Joe will tell Jason if his number is higher or lower than Jason's guess. If Jason guesse... |
when was the field of computer vision created and what are the disciplines that gave birth to it? I would appreciate it if you could give some web references that have the answer.
|
Suppose I have an application with two threads, which both use the same resource.
Normally, a synchronized block keeps these threads from messing with the resource in a way the user doesn't expect.
I understand why you do this, but I need an explanation how it is done, especially on the following part.
How come acquiri... |
Good programming practice distinguishes between specification (at the API level) and implementation. I would have thought that this same distinction would be found in type theory. Perhaps I just don't understand what I'm reading, but I don't see it.
Apologies if I'm completely off (and corrections appreciated), but it ... |
What would be the requirements for programming languages that are used for quantum computers? Do standard procedural languages with their constructs be sufficient, and succinctly capture the computing capabilities of a Quantum Computer? To illustrate, languages such as Assembler would most likely be closest to the hard... |
Earlier, I asked a question defining disruption in Genetic Algorithms. Given that definition, I'm still confused on how to answer the following question.
True or false? For 1-point and 2-point crossover, the schemata
which have bits that are close together on the string encoding
are more likely to b... |
I found this question on the net and I'm wondering what is the process for answering such questions? I assume there is some formula that works for all graphs?
1.a.
Consider the undirected graph with vertices $A$, $B$, $C$, $D$, $E$, $F$ and edges $AB$, $AC$, $BD$, $CE$, $DF$ and $EF$ (i.e., the graph is the 6-cyle $AB... |
Can I use breadth-first search for topologicallly sort vertices and finding strongly connected components in a graph?
If yes, how can I do that? If not, why?
I tried with a simple acyclic graph of 3 vertices, gave the start and finish time as we do in DFS and then sorted them in non-increasing order. There was a confli... |
Let $f:\Sigma^{*}\to\Sigma^{*}$ be a computable function and let $L$ be a recursive language. Is $f(L):=\left \{{f(w)|w\in L} \right\}$ recursive?
Here, I see clearly, that $f^{-1}(L)$ is recursive (simply by applying $f$ on an input $w$, and then see if $f(w)$ belongs to $L$).
My intuition tells me that $f(L)$ should... |
In the paper "Heterogeneous-Race-Free Memory Models" [1], the authors state that a program consisting only of atomic is race free in SC-DRF but it is not in HRF-direct. I am not able to understand why this is. Can anyone explain how this can happen?
[1] Derek R. Hower et al., "Heterogeneous-Race-Free Memory Models". In... |
The Eulidean distance function $d$ of $x$ and $y$ is given by:
$
d(x,y)=\sqrt{x^2-y^2}
$
Let us assume that $x$ and $y$ are fixed-point numbers, or $x,y$ are element of some subfield $f_n$ of $F_p$. We could even assume that $x,y$ have precision $n$ decimal digits. Any facilitating representations of rational or real v... |
I am working on aggressive driving behavior android application.
This will be implemented via supervised learning, wrong actions will be recognized and added while driving the car.
To check aggressive turns i am using centripetal force. When exceeds set force, wrong action will be detected.
I want to check if the acce... |
we know this definition:
Given a binary tree, Width of a tree is maximum of widths of all levels.
Let us consider the below example tree.
1
/ \
2 3
/ \ \
4 5 8
/ \
6 7
For the above tree,
width of level 1 is 1,
width of level 2 is 2,
width of level 3 is 3
width of l... |
Why an evaluation of Turing machine efficiency is equal to the algorithm which is implemented by this machine and vise versa? For example, we can say that efficiency of merge sorting algorithm is O(nlog(n)) and therefore Turing machine which implements this algorithm will do O(nlog(n)) steps. Why is this conclusion cor... |
Suppose we have a circular linked list that has nodes $1$ to $n$. L is a pointer that points to node 1 (with label $1$). Note i has a link to i+1 and we have a link from node n to node 1 because the list is circular.
Now we have following pesudo-code:
Int SO(LIST *L) {
While ( L->Next != L ) {
L->Next = L->Next... |
What's the language of following grammar?
$G: S \to S_1B$
$S_1 \to aS_1b$
$bB \to bbbB$
$aS_1b \to aa$
$B \to \lambda$
any hint or solution?
|
We know $L_1=\{w_1 w_2 \in (a+b)^*\mid |w_1|=|w_2|, w_2 \neq w_1^{\;\mathrm{R}}\}$
is a context-free language.
Can anyone help me produce a PDA or give me any hint how I can quickly understand why this is context-free?
|
The paper by Spielman and Teng, Smoothed Analysis of Algorithms: Why the Simplex Algorithm Usually Takes Polynomial Time (JACM 51(3):385–463, 2004), won a Gödel award in 2008.
Since then, has there been a monograph or substantial survey paper written on the subject?
The best I could find was a book chapter in Algorithm... |
For Hoare's partitioning algorithm quicksort is implemented as such
quickSort(array, first, last)
if(last > first)
pivot = partition(array, first, last);
quickSort(array, first, pivot);
quickSort(array, pivot+1, last);
but Lomuto is
quickSort(array, first, last)
if(last > first)
... |
I recently faced this problem in a programming contest: Given 3 square matrices N x N of size N up to 1000. All elements in 3 matrices are from 0 to 9. Check if matrix A x B equals to C, mod 10. In other words, return the result of expression (A x B) mod 10 == C.
For example:
$\qquad A = \begin{bmatrix}
0 & 5 & 8 \\
... |
Probabilistic algorithms often have a parameter that allows one to tune the error rate, typically by running the algorithm repeatedly. This often gives an error rate of something like $2^{-k}$ for $k$ iterations. This is a fine situation to be in, because $2^{-k}$ can be made as close to $1$ as you like without having ... |
I know that they both have reference bit, but I only understand the Second Chance but not the Clock Page-Replacement algorithm.
could anyone help me understand?
|
My field of research is not Database or AI. But I have some problems to solve, and would like to know which branch this kind of problems belong to, and what are the results.
The main question is: given a table of data, there are lots of possible queries that can be made. But some queries are meaningful, some are meanin... |
There is a classic puzzle book game very similar to a crossword puzzle, except a list of words is given and then a $N \times N$ square board made up of unit squares is given, with some squares blacked out just like a cross-word, and some squares have a letter already pre-written in them. The goal is to write each word ... |
Is ```sii``sii the smallest Unlambda program that doesn't halt?
In other words, what is the smallest non-terminating combinator term in SKI augmented with $C$ (call/cc) and $D$ (delay)? Is it $SII(SII)$?
|
I am trying to use the genetic algorithm to optimise a multi-layered neural network for image classification (i am using a subset of the MNIST handwritten digit data set as my initial dataset, but eventually would like to make it more general).
my neural network is represented by connection weight matrices with inputs ... |
I've been solving some exercises recently and it appears my answer was wrong for this particular example. The task is to convert this NFA into a DFA:
My attempt is this:
Now the tool I'm using (Exorciser) says that there is still nondeterminism in the automaton (even though it's equivalent to the original).
I don't s... |
The complexity of the below program is given to be O(n!)
double foo(int n){
int i;
double sum;
if(n==0){
return 1.0;
}
else {
sum=0.0;
for(i=0;i<n;i++){
sum+=foo(i);
}
return sum;
}
}
But I could determine its complexity as O(n!). Can anyone explain how is it coming to be O(n!)?
Is it Θ(n!... |
Could anyone suggest other page replacement algorithms that are applicable to the real world aside from
FIFO,
Second Chance (Clock),
Enhanced Second Chance and
Random?
|
I was just thinking about this: Does the BIOS execute on the CPU? If so, how does it handle multiple CPU architectures/instruction sets? If not, what does it execute on?
|
Many (and I suspect all) abstract data types in CS correspond to some math concepts, and even share the same names, for example, set, map, record/tuple, ....
As abstract data types, what do queues and stacks correspond to in math?
For example, some special paths in graph theory?
Have stacks and queues been treated mat... |
I have read some books and wikipedia, which seem to give not completely consistent definitions and notations. I try to understand the concepts, regardless of what they are called. Here are what I have figured (please correct me) and would like to ask :
a (abstract) data type is a set $D$ of values, together with some
... |
If a graph with $v$ vertices is represented in the form of adjacency matrix .
Then, adding a new vertex to the existing graph requires how much time ?
Is it $O(v^2)$ or $O(2v)$ .
We have the adjacency matrix of the graph with $v$ vertices , by adding a new vertex we have to enter a row (for edges leaving the new verte... |
Is it possible to estimate number of steps in best possible algorithm for classification of messages, using entropy of messages?
E.g. linear search problem. We have an ordered set of incomparable elements (no < and >, equivalence only) of length $N$, and element for search – A, which could be in set maximum once. Set c... |
I was reading page 147 of Goodrich and Tamassia, Data Structures and Algorithms in Java, 3rd Ed. (Google books).
It gives example of linear sum algorithm which uses linear recursion to calculate sum of all elements of the array:
Algorithm linearSum (arr , n)
if (n == 1)
return arr[0]
else
retur... |
Do people consider the implementability of a (abstract) data
structure or a data type, just like people do for
implementability/computability of an algorithm? By implementability, I mean if a (abstract) data
structure/type can be implemented on a real computer or abstract computer model.
Does the implementability of a... |
For an L2 cache that is strictly inclusive of the L1 cache, if a block to be evicted is also present in L1, then back invalidation is required to maintain the inclusion property.
I am interested in some details of how back invalidation is handled.
When an L2 block is evicted, is back invalidation command always sent t... |
In the field of computer vision, we talk a lot about this process of feature detection-description-matching as a way of recognizing objects. But on the other hand, there's also talks about object classifiers and such, but aren't they based on this feature detection description matching?
Is detecting features and descr... |
I am sorting the following list of numbers which is in descending order.
I am using QuickSort to sort and it is known that the worst case running time of QuickSort is $O(n^2)$
import java.io.File;
import java.io.FileNotFoundException;
import java.util.*;
public class QuickSort
{
static int pivotversion;
sta... |
I see a sentence in one final exam on automaton course.
I have one problem: if we want to have a TM that halts for all word in L, it's enough to have L be R.E? or we should have R be R.E and Complement of R be R.E?
Note: (Recursive Enumerable = R.E).
|
The Sieve of Eratosthenes is an algorithm generate the prime numbers, $2,3,5,7,11,13,...$ by drawing a list of numbers crossing out multiples of the smallest number in the list.
Is there anyway to modify this algorithm to search for twin primes up to $N$?
One way would be to, generate the list of primes $p < \sqrt{N}... |
My question seems like an elementary question, but it's really not.
Suppose I have one million cars in a line sorted in alphabetical order by license plate. I am standing at the top of the line with the car with license plate AAA111. I want to find the car with license plate ZZZ999. I could do binary search to find the... |
Let $C = shuffle(A, B)$ denote the shuffle $C$ of two languages $A$ and $B$, it consists of
all strings $w$ of the form $w = a_1b_1a_2b_2....a_kb_k$, for $k > 0$, with $a_1a_2 ··· a_k \in A$ and $b_1b_2 ··· b_k \in B$. Show that if A and B are regular then so is $C = shuffle(A, B).$
|
My objective function, f, is complicated and embodies several disparate constraints I want my simulation to optimize simultaneously. So I can't really even assume it's continuous; it is probably close, in that small changes in the parameter space won't produce big shifts in f, but the gradient, etc. will be undefined a... |
AB
00 01 11 10
00 | x | 1 | 0 | 1 |
CD 01 | 0 | 1 | x | 0 |
11 | 1 | x | x | 0 |
10 | x | 0 | 0 | x |
The answer to the above Karnaugh map is $F(ABCD) = B D + \bar B \bar D + \bar A \bar C \bar D + \bar A C D$
according to my book and the K-map solvers online.
But what I don'... |
Take a graph $G=(V,E)$ .
As we know both DFS and BFS are graph search algorithms .
But why the algorithm for BFS is designed in such a way that it does not cares about the vertices that are not connected to the source vertex $s$ but DFS takes care about all vertices in $V$.
I mean if $G$ has $l$ connected components... |
From what I have read, the main advantage to using tanh(x) or sigmoid(x) as an activation function for neural networks is that it is very easily differentiable.
I am trying to implement a neural network that uses a genetic algorithm for optimisation rather than backpropogation, and therefore it doesnt matter if my acti... |
Given an integer $N$, I want to find the number of numbers $\le N$, that contain at least one of the digits from the set $\{2, 4, 6, 8\}$. How do I go about solving this problem?
I was thinking of constructing all possible numbers that fit into the integer size of the language that I am using, through a recursive proce... |
Is there a problem with this proof that NP = coNP?
It suffices to show that Satisfiability can be solved efficiently with at most a polynomial number of queries to an oracle for Tautology. The algorithm for a problem P is, pick a variable X in P and fix it to T to obtain a problem P'. Submit ~P' to the oracle for Tauto... |
I wonder what differences and relations are between symbol and enumerated types?
A symbol is a primitive datatype whose instances have a unique human-readable form
an enumerated type is a data type consisting of a set of named values called elements, members or enumerators of the type.
Since a data type is a set of v... |
For P algorithms, we say that the execution time can be logarithmic O(log n), lineal O(n), quadratic O(n^2), etc.
For NP and NP-Complete algorithms is there a way to represent the execution time? Or is there a 'standard' way of doing it?
|
I am studying these sorts, but it is still unclear to me which one of these two would require fixed length keys?
|
To cut a wooden board, a sawmill charges proportional to the length of the board. The cost of cutting a single board into many smaller boards will thus depend on the order of the cuts. As an example, lets say cutting a $10m$ board into two pieces costs $10$. Then to cut a $10m$ long board at marked positions $3m$ and $... |
I am implementing an autoencoder neural network in matlab, the weights of which are being optimised by a genetic algorithm.
At the moment I am working on the first layer, trying to get an improved reconstruction from it by using the genetic algorithm.
Using the genetic algorithm, I am able to get about a 30% improvemen... |
One colleage came with the idea/comment that it would be useful to lecture two programming languages, eg. Java and Scheme, at the same time while lecturing an Introduction to Programming course aimed for first term undergraduates.
I have my doubts that approach could stuck some students in learning the syntax of the pr... |
We have $n$ integers with lot's of repeated numbers. In this list, the number of distinct elements is $O(\log n)$. What's the best asymptotic number of comparisons for sorting this list?
Any idea or hint or pseudo code? In fact I want to learn pseudo code.
|
I am trying to design a program where people trade objects within a fixed set of objects. They offer a single product, and designate a set of products they are willing to accept for that product. The job of the program is to involve as many people in a trade as possible.
To do this, I create a directed graph, where ... |
In the proof of Theorem 4 in [GS'12], the authors reduce an instance of PARTITION to their problem. Therefore, they create for each element $a_i$ in the instance of PARTITION a number $2^{c \cdot a_i}$ for a suitable constant $c$, which is later used in the reduction. They argue, that the instance remains of polynomial... |
Suppose that you're given a fair coin and you would like to simulate the probability distribution of repeatedly flipping a fair (six-sided) die. My initial idea is that we need to choose appropriate integers $k,m$, such that $2^k = 6m$. So after flipping the coin $k$ times, we map the number encoded by the k-length bit... |
I'm still learning functional programming (with f#) and I recently started reading about computation expressions. I still don't fully understand the concept and one thing that keeps me unsure when reading all the articles regarding monads (most of them are written basing on Haskell) is the relation between computation ... |
Suppose we have a directory containing $N$ files whose names are numerals, but not necessarily contiguous numerals. Let's say for concreteness that each file contains an email message, each of which has a date, and we would like to rename the files so that the order of the filenames is the same as the order of the dat... |
The upper bound on the runtime of binary search tree insertion algorithm is O(n) which is if it is not balanced
What will be the tighter upper bound on this,will it become O(logn)
I have read that tighter upper and lower bounds are often equivalent to the Theta notation.
|
With conventional collision resolution methods like separate chaining and linear/quadratic probing, the probe sequence for a key can be arbitrarily long - it is simply kept short with high probability by keeping the load factor of the table low. Collisions during rehashing thus aren't a problem as they don't affect the... |
Sorry, I'm really new to neural networks and this question is probably pretty obvious. If you have any resource that can help clarify these concepts to me it would be much appreciated.
The way I understand neural networks is that each input node, x i goes to each hidden layer. Is there a unique weight for each input ... |
I have an optimization problem, whose answer is a real value, not an integer such as vertex cover and set cover. Therefore, the decision version of my problem is given an input and a real value $r$.
I have been able to reduce an NP-complete problem to my own problem in polynomial time. I also showed that my problem is ... |
How we calculate the answer of following recurrence?
$$T(n)=4T\left(\frac{\sqrt{n}}{3}\right)+ \log^2n\,.$$
Any nice solution would be highly appreciated.
My solution is to substitute $n=3^m$, giving
$$T(3^m)=4T\left(\frac{3^{m/2}}{3}\right)+\log^2 3^m = F(m)=4F((m/2)-1)+m^2=O(m^2logm)= O(\log^2 n \log n \log n)\,.$$
|
I understand context switches and threading on a single core system, but I'm trying to understand what happens in a multi-core system. I know multiple threads from the same process can run simultaneously in a multi-core system. However, can multiple processes run simultaneously in such a system as well?
In other words,... |
Comparison-based sorting algorithms does a number of different operations to accomplish the sorting, why comparisons are the dominant time consumption? While I understand the standard analyses of asymptotical behavior of number of comparison operations, I don't quite understand why other costs of other types of opera... |
My question is simply, can linear Diophantine equations be solved in polynomial time? Specifically, I am looking at equations of the form $a_1 x_1+a_2 x_2 + ... + a_n x_n = k$, where $a_i,x_i,k$ are all integers, and solving for $x_i$. The algorithm I am using is based off of the following journal article:
http://www... |
I am new to automata theory. I am well aware of the definition of regular language in automata, that is "a language is called a regular language if some finite automaton recognizes/accepts it" [MS]. However, I'm confused why such language (set of strings) is called regular.
what is regular about regular language?
Is t... |
Given a grammar such as the following, does $S'$ have some special meaning or does it just denote another non-terminal like $B$, $A$, $P$, $Q$ etc.?
$$\begin{align*}
S &\to aBS'\\
B &\to b\\
S'&\to bA
\end{align*}$$
|
Dynamic time warping (DTW) is an algorithm in time series analysis for measuring similarity between two temporal sequences which may vary in time or speed. Here are some explanations of DTW:
Dynamic Time Warping by Wikipedia
Dynamic Time Warping by M Müller (2007)
Is there any algorithm that can replace DTW for measu... |
Let $\Sigma=\{a,b\}$, and let $S(a)$ be sum of the positions of $a$ of string $S$. I want to prove $$L=\{S\in \Sigma^{*} \mid S(a)=0(\bmod 2)\}$$ is regular.
What I was thinking is to do somehow keep track of sum of positions of $a (\bmod 2)$ For that I was thinking to do like take set of states as $\{0,1\}\times \{0,1... |
We have a set $A$ of $n$ distinct numbers. We want to determine for all $x,y,z \in A$ whether the following relations hold.
$$
x+y>z\qquad x+z>y\qquad y+z>x
$$
Anyone could describe $O(n)$ Algorithm?
|
I came across generalized nondeterministic finite automata (GNFAs) in Sipser's Introduction to the Theory of Computation. These are automata where transitions are labelled with regular expressions, rather than single symbols from the alphabet. I thought he would explain why GNFAs are allowed. I mean, an appropriate exp... |
What is meant when somebody says that a problem can be expressed as a $\Pi_1$-sentence?
I know that for the arithmetical hierarchy, a $\Pi^0_1$-sentence is a sentence of the form $\forall n_1\forall n_2\dots\forall n_k \psi$ where $\psi$ is a formula in the language of Peano arithmetic with only bounded quantifiers. An... |
So in biology (DNA sequences), sequence alignment is a generalization of longest common subsequence where an alignment of two sequences is scored typically with a linear function of how many spaces are inserted into each sequence and how many times each possible pair of aligned characters appears in the alignment. Just... |
I'm learning about language metatheory and type systems, and am using coq to formalize my study. One of the things I'd like to do is examine type systems that include dependent types, which I understand is very involved: being able to rely on coq would be invaluable.
Since this type system feature (and other, simpler ... |
Given two binary search trees T1 and T2, if it is possible to obtain T2 from T1 using only right-rotation, we say that T1 can be right-converted to T2. For example, given three binary search tree T1, T2 and T3:
For example, given three binary search tree T1, T2 and T3:
Tree 1 Tree 2 Tree 3
... |
I'm trying to understand the difference between weak and strong AI. For an example, let's say we would pass the turing test - would it show strong AI or weak AI then?
I don't believe that this is standard terminology, but more philosophical. It was mentioned by John Searle in his "Chinese room argument". As I understa... |
I know that Big O is used to bound worst case running time. So an algorithm with running time $O(n^5)$ means its running time in worse case is less than $n^5$ asymptotically.
Similarly, one can say that for example merge sort's running time is $O(n^2)$ which is correct. But we know that there is a better bound for it:... |
Question is you're given a DFA. Give an algorithm which tells you whether strings of all lengths $n\in \mathbb{N}$ are acceptable or not.
What I doing was, I have algorithm to count the number of all strings of some fixed length $n$. Now let there are $k$ states. Suppose we got a positive result (i.e the number of stri... |
Main task
In my bachelor degree's thesis I've developed an algorithm for recommender systems which uses personalized PageRank with some particular features as nodes.
In the recommender systems' field, there is the opportunity to understand how good is the algorithm using some accuracy metrics (MAE, RMSE, F-measure, ecc... |
I have a function $f$ given by
$f(x)=nearest\ upper\ power\ of\ two\ of\ x$
For example, $f(5)=8$ and $f(2)=2$.
Are $f(x \wedge y)$ and $f(x+y\mod{N})$ separable over some operator. For example, could we do:
$f(x\wedge y)=g(x)g(y)$
or
$f(x+y\mod{N})=g(x)\ op\ g(y)$
where $op$ is some arbitrary operator.
In other word... |
What are the significant applications of minimum spanning trees?
After doing some research online and in several textbooks, I have found three real-world applications:
Building a connected network. There are scenarios where we have a limited set of possible routes, and we want to select a subset that will make our ne... |
So most resources providing Sudoku puzzles assign a difficulty category to each puzzle, even some I've seen with 15 or more difficulty categories. But what is a good way to assign these difficulty categories? If enough human puzzle solvers were used, the average time for a human to complete a puzzle and the percentage ... |
So, suppose i have a maze, which has a start point and an end point, marked with Orange and red respectively and my goal is to find the minimum distance between them. The blocked path is represented by black colour and the open path is represented by white colour . However there are two modification done in this.
Ther... |
i prepare for Autotmata Course Final Exam.
in one of lecture, our professor draw this Turing Machine, and wrote DELTA is Neutral element of TM.
it'w wrote:
Language of this TM is: {$W \in (a+b)^* : w=w^R$}
but i think x is in alphabet and the language is {$W \in (a+b+x)^* : n_a(w)=n_b(w)$}
$n_a$ is number of a's in w... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.