instruction
stringlengths
35
29.1k
An instance of PATH is given by where G is a directed graph, s and t are nodes in the graph, it's a true instance if G has a path from s to t. DISTANCE-PATH is similar, but with an extra requirement d and on an undirected graph. A true instance of this would be where G is an undirected graph and there exists a path o...
I know little about machine Learning, but I work on optimization (solving NP-hard problems with SAT solvers or MIP). Examples of this would be solving TSP, Steiner tree problems, path finding with constraints, etc. I was wondering, is there any problem in ML that is NP-hard for which there are only approximations or sm...
I'm looking for a "safe" representation of DAGs. With "safe" representation I mean that it can be described by a context-free grammar. Ideally, this grammar would be suitable for a simple LR parser. The same problem for trees instead of DAGs is already solved: Just use one of the many well-known tree representations su...
I want to prove something but I am not sure if it is the right way to do it. I have two LTS that define different semantics. A=($Q_a,Λ,\to)$, and B=$(Q_b,Λ\cup\{\beta\},\leadsto)$, where $\beta$ is a silent transition. So if I am understanding correctly, to prove that A simulates B through a relation $R_1$,i.e, $AR_1B...
Consider the unweighted and weighted versions of the vertex cover problem (UVC and WVC for short, respectively). As UVC is a special case of WVC, is it true that $$\text{UVC} \leq_\mathrm{m} \text{WVC}$$ but $$\text{UVC} \not \equiv_\mathrm{m} \text{WVC} \enspace ?$$ I think the first part is easy to prove, since one c...
Seems like they both are set of strings for which the problem returns "yes" in decision problems. P class is consists of problems so we can only say a problem is in P. But we sometimes say that a language L is in P. why?
Problem Statement Prove that if a function $f$ is primitive recursive, then there are countably infinite number of primitive recursive definitions of $f$ Yes, this is a homework question. My Work I proved that there are infinite number of definitions using the following construction $$g_k(n) = \underbrace{P_{1}^1(P_...
In the general Steiner tree problem (Steiner tree in graphs), we are given an edge-weighted graph G = (V, E, w) and a subset S ⊆ V of required vertices. A Steiner tree is a tree in G that spans all vertices of S. There are two versions of the problem: in the optimization problem associated with Steiner trees, the task ...
Is there an in-place algorithm for sorting variable length records? For example a vector of arbitrary length strings. Most provided in-place algorithms assume that you can switch two elements without affecting the rest of the structure. However this does not work if your records differs in size. Googling leads me to t...
My question is basically given three languages A, B and L, where L is A and B concatenated together and B is proven to be non regular, is it possible to find an A that makes L regular?
Suppose we are given a 3CNF, and we want to know whether k clauses from this 3CNF can be satisfied (k being any natural number)? I'm trying to think of an efficient algorithm to solve this problem. This is sort of a variation of the MAX 3-SAT, but with a fixed k. If we have m clauses, checking naively would get $\binom...
Consider a nondeterministic PDA $P$ which pushes/pops at most one stack symbol on a transition. Suppose that for every string $\sigma \in L(P)$, there is an accept computation of $\sigma$ in $P$ which starts with an empty stack and ends with an empty stack and which has the additional property that during this computat...
I am conducting a study has the general objective to build a route recommendation system for bicycle users, able to suggest viable alternatives to dislocation in urban environments, with reference to contextual information such as: street blockades , points of origin and destination and user preferences (avoid streets ...
I am currently finishing up my junior year as a Biochemistry major at a 4-year university. In a year, I will graduate with a B.S. in Biochemistry and way more credit hours than anyone should ever have due to AP classes in high school. To make a long story short, I want to pursue computer programming once I graduate nex...
I have a 3 dimensional float key search space (say a simulation world). I want to keep my values (ints, agent ids) in a data structure that can perform nearest neighbors search (with search for N neighbors in a range surrounding a given key) as fast as possible in terms of search algorithmic complexity (on average). Al...
log1.gz log10.gz log100.gz log101.gz log102.gz log103.gz
Could anyone tell the reason for popping the top of stack(dollar symbol) as said in this lecture(p.54) when there's already dollar symbol in the stack. I would like to know if we could replace the transition given here(p.54) of the form A,$ $\to$ 0$ with A,$\epsilon \to$ 0.
According to the definition of $IP$ given in Sanjeev Arora and Barak there is no constraint on the running time of the "Prover" ( when "verifier" sends a message to the "Prover" and expects a message in return from it ). Why is it so ? Also the book says the "Prover" might compute some undecidable function. How is tha...
A square is a word of the form $ww$. A linear grammar is a CFG that has productions of the form $A\to uBv$ or $A\to u$ (with lower case symbols corresponding to terminal strings). Question: Is it decidable whether a linear grammar generates a square? What did I do? I know that it is undecidable whether a linear grammar...
While studying max flow / LP, I came across a couple of reduction problems that gave me a bit of pause: Here are two variants of the standard Maximum Flow problem. Show that both of them can be solved efficiently by reducing each to linear programming. (Note: (1) and (2) are separate problems) (1) Each directed edge ha...
I was not able to find or come up with two formulae which are equivalent but have different CNF. All my ideas reduce to the same formula after applying transformations. The requirements are the following: Give an example which shows that proving equivalence of two formulas by bringing them into conjunctive normal form ...
Suppose that we have an RTF document which contains sections and sub-sections. The sections and subsections all have headings that are visually marked up (e.g., bold and italic), but the document structure is not made explicit (i.e., we have a linear flow of text). From the section headings, we wish to automatically de...
This question is not about game development or about actual implementation details. I was playing Little Alchemy yesterday. (Warning: Productivity hazard.) You start with the four classical Elements of earth, air, fire, and water. You can combine them to produce other "Elements" (wood, humanity, time, cities, etc.),...
I have incoming stream of data which has following values. Country, City, State Along with maximum number of unique values to store (e.g. 50,22,12). I need to design a system which will keep count of occurrences of above values and its sub-values. If there are more than maximum number of values then instead of storing ...
Here is an exercise I came across while studying MaxFlow / MinCut and I'm rather stumped: Designate $G = (V, E)$ as an undirected graph that has at least two vertices. Every edge $(e)$ on this graph has capacity $c_e$. Pick two arbitrary vertices from $G$ and label them $s$ and $t$ respectively. Now, we'll let $P*$ be...
I read it in not only one place. People write theorems of the form: Theorem: ALG is an O(1)-approximation algorithm It means that ALG is a constant factor approximation algorithm but is it safe to say that? I mean it misleads. Why am I asking? Because, many problems I know of do not have an $\alpha$-approximation alg...
The question is as follows: Let $L$ be a language (not necessarily regular) over an alphabet. Show that if the equivalence class containing the empty string $[ \epsilon ]$ is not $\{ \epsilon \}$, then it is infinite. How do I go about answering this? Would I need to use Myhill-Nerode theorem? From what I've rea...
I am confused why Binomial heaps do not utilize marking. Concerning Fibonacci heap children: Each tree in a Fibonacci heap is allowed to lose at most two children before that tree needs to be "reprocessed" at a later step. The marking step in the Fibonacci heap allows the data structure to count how many child...
Assume I have a distributed system of entities, each with a replica of the same data object that can be modified by broadcasting the changes and I'm using vector clocks to know how to order changes. In this scenario, Why would I need to increment my own clock if I receive an update? (I noticed in the original paper on ...
I have seen in different tutorials how to represent numbers and booleans in the pure $\lambda$-Calculus, and how to define some arithmetic and logic operations. But what if I want to represent other constructs, not usually encouraged in pure functional languages, like state (assignment of values to variables) and sequ...
I am not sure if this question is better suited for cs.stackexchange or math.stackexchange - This is of interested to me in the context of a data structure problem, but the question itself may be better suited elsewhere. If so, please feel free to move my question. Let $\mathcal{Q}_n$ denote the $n$-cube graph. Given a...
According to wikipedia DFA accepts word $w$ by one of two definitions: A word $w$ is accepted by $M$ if $\hat\delta(q_0,w)\in F$. A word $w=w_1w_2\dots w_n$ is accepted by $M$ if $\exists r_0,\dots,r_n\in Q$ such that: $r_0=q_0$ $\delta(r_i,w_{i+1})=r_{i+1} \ \forall 0\le i<n$ $r_n\in F$ Assuming that some word $w...
So this is a follow-on question to my other question (Can we make a non-regular language regular via concatentation?). Given the following, $L = \{0^n1^m2^m \mid n>1, m>1\}$ $A = \{0^n \mid n>1\}$ $B = \{1^m2^m \mid m>1\}$ Is $L$ in fact just $A$ and $B$ concatenated (I believe it is, but I want to verify that)? Furth...
Can anyone explain why pictures are not considered 2D, but rather high dimensional? Especially with regards to CV and AI.
I'm curious, how could I know that P (polynomial time complexity class) is not equal to deterministic linear space complexity class? Is there some proof? Or should I find some algorithm which is not in P but it is in polynomial time complexity class or opposite way? Do you know about some?
This is the = Type variable rule that I'm seeing through out the my course and unable to grasp it completely. $$\dfrac{\phi \vdash \Gamma[\mathrm{ctx}] \qquad \Gamma(x) = \tau} {\phi; \Gamma \vdash x : \tau} \textsf{(ty-var)}$$ The first thing in antecedent looks like it's stating that $\Gamma$ is wel...
In the type theory podcast ep. 3, Dan Licata claims that the fact that for every input, insertionsort and mergesort give the same result does not imply that the result would be equal when used as higher order functions as arguments to a third function, i.e. map insertionsort does not have to equal map mergesort. He ex...
Let $R = \{1, \ldots, n\}$ and $S = \{S_1, \ldots, S_m\}$ a collection of subsets of $R$ such that $R = \bigcup_{i = 1}^m S_i$ and, for $n > 3$, $$3 \leq \vert S_i \vert \leq 4 \, , \enspace i \in \{1, \ldots, m\} \, .$$ Then, I want to know the subset—or subsets, since there may be more than one valid solution—$T$ wit...
I'm looking for an information about closure of complexity complete classes. Is it true that any language, if the language is X-complete, then its complement is X-complete? Why? I was thinking that it has to do with accepting states in Turing Machine. You should just switch them so the complexity should be the same b...
This question has been asked in the theoretical community, but deemed as too practical. I am moving it here, I hope it is on-topic. I'd like to know more about real performances of data structures, in particular two families attract my interests: hash tables cache oblivious My researches didn't find any "comprehensi...
I'm looking at a past paper, where there is the following Algorithm, and we are asked to give the runtime in O notation: Loop2(n) for i := 0 to n j := 0 s := 0 while s <= i j := j + 1 s := s + j I can see that the outer loop (alone) is run $O(n)$ times, and that the ...
According to ANSI/SPARC model a database consists of three (or four?) levels. These are internal (and/or physical?), conceptual and external levels. Most information resources say like physical and internal levels are the same, i.e. these are two alternative names for the same actual level. But my tutors' lecture mate...
how would I go about multiplying two 32 bit numbers (lets say unsigned) and putting the result into two 32 bit vars , one for the msbits and one for lsbits . It should be simple but im stuck thanks !
Problem: Maximum Weight Planarization Given a weighted non-planar graph with $n$ vertices, and $m = \mathcal O\left(n^2\right)$ edges. Find the subgraph with $n$ nodes (but possibly removing edges to make it planar) that has the most weight (i.e the sum of the weight of the edges in this subgraph). Questions: Is thi...
This question is about the use of 'ranking' of regular languages in applications such as format preserving encryption. I understand format preserving encryption but I don't understand how regular expressions can be used to get an integer that is the input of an encryption algorithm. Referring to this video https://yo...
A B-tree is kept balanced (i.e. all leaves at same depth) by splitting a node when adding a child that won't fit, and propagating this splitting up to the root. Can the same technique be used to keep a regular binary search tree balanced (since a binary search tree can be viewed as a 2 child maximum B-tree)? If so, doe...
I'm studying about data structures and algorithms in that Time complexity and calculating time complexity of the programs. I just wondered that how to calculate time complexity of non terminating loops such as infinite loops
I'm reading through Sebastian Raschka's Python Machine Learning, and I see something confusing that is not explained in the text. In the code on this page: https://github.com/rasbt/python-machine-learning-book/blob/master/code/ch02/ch02.ipynb Implementing a perceptron learning algorithm in Python In the training proces...
I am stuck at the following problem: Prove that if $L$ is a regular language over some alphabet $\Sigma$ and that $\sigma, \tau \in \Sigma$, Then the language $replace(L,\sigma,\tau)$ is regular. Where $replace(L,\sigma,\tau)$ is defined as: $replace(L,\sigma,\tau) = \{x\tau y\in \Sigma^*| x\sigma y\in L\}$. My try: ...
I understand that adding the annotations (dependent typing) may cause the type checking of the programming language to become undecidable. What about type inference ? Whether type checking and type inference of Agda is undecidable ? I'm interested not only in type checking but type inference also.
For any sentence $\alpha$, variable $v$, and constant symbol $k$ that does NOT appear elsewhere in KB: $$\dfrac{\exists \nu. \alpha}{\mathsf{subst}(\{ \nu / k \},\alpha)}.$$ E.g., $∃x. \mathrm{Crown}(x) \wedge \mathrm{OnHead}(x, \mathrm{John})$ yields $\mathrm{Crown}(C_1) \wedge \mathrm{OnHead}(C_1, \mathrm{John})$ Pro...
This is a soft question. I don't know a lot about cryptography or its history, but it seems like a common use for RSA is to do key exchange by encrypting a symmetric key to send a longer message (e.g., the description of iMessage here). Isn't this exactly the thing that Diffie-Hellman key exchange, which is older (an...
Both palindrome and its complement are context-free. This is very interesting. Both are non-deterministic context-free, which in general are not closed under complement. What is it about these two NCFLs that makes complement work?
This is an example problem in a computer organization and architecture course that's giving me some trouble. It goes as follows: Consider a cache of 4 lines of 16 bytes each. Main memory is divided into blocks of 16 bytes each. That is, block 0 has bytes with addresses 0 through 15, and so on. Now consider a progr...
is set of inherently ambiguous context free languages close under operations such that union, intersection, kleene star, concatenation, reverse, complementation and etc. how many of theme are answered?
Is there an example of a sum of squares (SOS) hardness proof where the constraint is something non-trivial (like with some polynomial constraint) rather than just imposing the the typical $x_i^2 =1$ constraint? (which corresponds to working on the hypercube $\{-1,1\}^n$) Anything which is directly formulated as a CSP ...
In type application Rule : $$\dfrac{ \Gamma \vdash t_1 : T_{11} \to T_{12} \qquad \Gamma \vdash t_2 : T_{11}} { \Gamma \vdash t_1 \ t_2 : T_{12} } \textsf{ (T-App)}$$ if we deriving the term from bottom up, how to get $T_{11}$ from ? How you'll know what is $T_{11}$? Its not clear to me.
I have seen use of , and somewhere use of ; when defining context : $$\dfrac{\phi \ , \ \Gamma \ \vdash } {} $$ somewhere else i have seen : $$\dfrac{\phi \ ; \ \Gamma \ \vdash } {} $$ What is the difference between both. I have read something like extension of context. Then what se...
I have this Turing machine example given in my book: For the language $0^n1^n$. I understand how it works because it's very similar to a Finite State Machine. But what I want to know is the following: What is the $|-$ symbol is for what are the states $q_0$, $q_1$ doing in middle of everything. Unfortunately my textb...
I already know, that the language $$L_0 = \{m \mid \text{the Turing machine $m$ does not stop on an empty tape}\}$$ is not decidable. If I want to know, if $$EQ = \{\langle m, n \rangle \mid L(m) = L(n)\}$$ is decidable I can reduce $L_0$ to $EQ$. Because $(L_1 \setminus L_2) \cup (L_2 \setminus L_1) = \emptyset$ iff $...
I want to implement an algorithm thats select the best group, which maximize the variable A and minimize the variable B. For instance, I have the following groups: G1 - A = 10 B = 2 G2 - A = 10 B = 3 G3 - A = 12 B = 1 G4 - A = 10 B = 4 and so on... One solution could be the sorting the groups by A and resolve ties by s...
The problem is as follows. Minimize the sum of absolute differences between a matching of $n$ values from two sets, $A=\{a_1,a_2,\cdots, a_n\}$ and the set $B=\{b_1, b_2,\cdots, b_m \}$, with $n\leq m$. So, we can use two list of indexes $\ I$, $J$, such that $I\subseteq [n]$, $J\subset [m]$, and $|I|=|J|=n$. The not...
If I'm not mistaken, search heuristics rely on problems where the best answer is very close to pretty-good answers. For example, the traveling salesman problem. If there is a route which is the optimal except for a small anomaly somewhere, where the route isn't quite optimal, the algorithms still says that's "pretty go...
There seems to be two approaches to store data in NoSQL databases: Key-Value - The Key is usually stored in a hash-table referencing a Value, or Object, which can be either a key (with specific semantic) or any arbitrary data. Examples are Riak, Redis, Dynamo, CouchDB... Subject-Predicate-Object - Subject and Predicate...
Let $C$ be a $[n,k]$ cyclic code over $\mathbb{F}_q$ with $(n,q)=1$. I want to show that $(1, \dots, 1)$ is a codeword iff $X-1 \nmid g(X)$. $g(x)$ is the generator polynomial. We suppose that $(1, \dots, 1)$ is a codeword. We consider the following correspondence $$\pi: \mathbb{F}_q^n \to \mathbb{F}_q[x] / x^n-1, (a_...
I'm asking for a sequence of instances for SAT, one instance for each length, such that the sequence takes exponential time with MiniSAT.
How to generate a degree sequence of a degree distribution that follows the power-law in which I know $N=10^2$ and $\gamma=2.5$? The degree distribution of power-law is $p_k \sim k^{-\gamma}$. I want to generate a power-law network using the configuration model, but to do that I need to know the degree sequence $seq={k...
We are given the following grammar. S-->AS/b A-->SA/a We have to tell if its LALR or not. As we all know that LALR is only minimization of CLR, So first I constructed the CLR parsing table using canonical collection of LR(1) items. In the table there was no conflict.But There is no minimization possible.Does that mean ...
The Unit type is a singleton type containing the constant unit. In functional languages with side effects, unit is used in functions that perform side effects. For example print is a function from string to Unit. Unit also corresponds to truth. If you view the type of the expression as a proposition and the program as ...
What algorithm can be used to correct a two-bit error in a message protected by a 32-bit CRC, assuming the CRC polynomial allows that? I'm seeking something for 480-bit payload, able to detect uncorrectable errors, fast in the worst case, and compact. Because I have hardware support for that, I'm most interested in the...
I have created a very basic model of an array list in the B method as shown below MACHINE Array(TYPE) VARIABLES block INVARIANT block : seq(TYPE) INITIALISATION block := [] OPERATIONS add(e) = PRE e : TYPE THEN block := block <- e END; remove = PRE block /= [] THEN block := tail(block) END; res...
A bitvector of length N has 2^N different values. How many different values has a quantum bit vector of length N? Is it possible to test two quantum bit vectors for equality?
Under $BPP=P$ conjecture randomization does not have much power for poly time algorithms. Can we say the same about randomized subexp algorithms like number field sieve?
If I have the integer ""1234" stored in a file, the size of the file when I use the command "ls -l" or "wc -c" is 5. If I have "12345" the size of the file is 6. Basically the number of bytes in a file = (number of individual digits) + 1. Now, I am assuming the "+1" comes from the space it takes to create the name of t...
Say one is given a matrix (assume real and symmetric if necessary) and its $n-$dimensional columns be say $v_1,v_2,..,v_n$. Now is it possible to find a set of $d<n$ lower dimensional vectors ($w_1,..,w_d$) such that they form a $d \times d$ matrix $B$ (assume real and symmetric) with either of these properties, That...
I am pretty new to Turing Machines and am trying to figure something out. So let's say I have a tape with input 0 0 1 0 0 1 The language is twice as many 0's than 1's. So first time through, I will mark an X on the first 1 I find. Then when I am heading back to the start of the tape, how do I know when to stop? Can y...
So I have this question: A shuffle of two strings X and Y is formed by interspersing the characters into a new string, keeping the characters of X and Y in the same order. Example would be X = AND Y = THE Z = ATHNED -> A N D TH E So this would return true. I've seen solution to this using Dya...
In an algorithm book it said that to solve the coin denomination problem via Dynamic Programming approach a 2-D array is needed: Exercises 8.4 #9 Is it not possible to do this using a 1-D array. I was thinking that maybe you could set the $C$ values in a 1-D array as: $C[0]=0$, $C[n]=1$ if $n$ is one of the denominatio...
Someone recently claimed that there's an adversarial input for randomized quicksort; he referenced this paper. This defies my intuition because there are results that say that randomized quicksort runs in $O(n \log n)$ time with high probability. (See, for example, the book Randomized Algorithms by Motwani&Raghavan.) I...
For the following finite state machine: The language recognized by it is given to be: $0+(10+11)(0+1)^*$ in my samples book, which I think is clearly wrong, since there's no return path to the final state. I think the language recognized should be just an epsilon or nothing. I wanted to confirm if I am right or wrong ...
I'm reading about Skip-Gram and how it represents words as vectors. If I'm correct it not just represents a single words as a vector, but the word and it's neighbours. So if I have the dataset "the quick brown fox jumped over the lazy dog", Skip-Gram (with a window of 1) learns vectors for ([the, brown], quick) (where ...
Is there an explicit example of a language which is EXP-complete? Or a weaker question, i.e., is there an explicit example of a language which is proven to be in EXP but not in P? By diagonalization theorem, we know the existence of such a language but is there a construction or explicit example known till date?
This is an offshoot of this question Which is more fundamental: key-value or subject-predicate-object? Is there any fundamental, hypothetical or practical, representation of data relationships? Both Key-Value and Subject-Predicate-Object describe pretty well relationships between data in any format. And any relationshi...
While studying about Deadlock Avoidance I came across a paragraph which states as given below: When the system needs to issue any resource to any process, then in making this decision the system must consider the resources currently available, the resources currently allocated to each process, and the future requests ...
There are $n$ intervals on the real line , the intervals are given with start- and end point. The $i$-th interval is $(d_i,f_i)$ where $d_i$ is the start point and $f_i$ is the end point$d_i<f_i$. it is given that $d_i,f_i\in \mathbb Z$ and $0<d_i,f_i<n^4$ Write an algorithm that checks if all intervals are disjoint....
It is well-known that 2-SAT is in P. However, it seems quite interesting that counting the number of solutions to a given 2-SAT formula, i.e., #2-SAT is #P-hard. That is, we have an example of a problem for which decision is easy, but counting is hard. But consider an arbitrary NP-complete problem (say 3-COL). Can we i...
I was reading a paper by Lance Fortnow and Michael Sipser. "Are there interactive protocols for co-NP languages?" Information Processing Letters 28 v5 (1988), pp. 249-251. An online version of the paper can be found at http://lance.fortnow.com/papers/files/conpipl.pdf. My question concerns the second part of the proof ...
I am doing homework and I have the following problem: Consider the grammar: statement → assign statement → sub_call assignment → id = expression sub_call → id ( arguments ) expression → head tail tail → operation expression tail → ε head → id head → sub_call head → ( expression ) operation → + | - | * | / ar...
I believe that the word problem is the problem to decide whether two different expressions denote the same element of a suitably defined algebraic structure. For simplicity, let us focus on free groups here. (Because I'm only interested in free algebras, and for groups one might indeed call this a word problem.) The ex...
The standard way a search engine retrieves documents is by using an inverse index from words in the query to document ids. Since the ids are sorted, a query like "word1 AND word2" would fetch the lists of document ids two for word1 and word2, and find the intersection in linear time (similar to merge in merge sort). Bu...
I am making database on Disaster Management. There are four tables. DisasterEvent (eventid, name, glideID, status, description, date_occurred, date_ended, disaster_type) People(eventid, num_deaths, num_injuries, num_affected) Homes (eventid, num_homes_destroyed, num_homes_damaged, total_insured_loss, total_uninsured_...
Is emulation and/ or virtualization performance faster when the guest and host OS are similar? If yes, how big, relatively speaking, is the difference? And whether the answer is yes or no, why is it so? For example: Same architecture Will a x86 Windows host emulate and/or virtualize an x86 Android guest faster than it ...
Universal Turing Machine can be boiled down to two components. Infinite tape of input and an action table, a finite state machine that moves read/write head along the tape and writes to it depending on input provided by the tape. From this point of view cells have some properties very similar to UTMs, the DNA is in an ...
I have seen examples about Banker's Algorithm from this Wikipedia link, this book and many other places. In all these examples some processes are allocated resources less than their Max Need. For example, consider the state of system as shown in below given image taken from Wikipedia link: Here you can see that the p...
In parallel computing, I know the speed up equation is $$ \frac{1}{ s + \frac{1-s}{p} } $$ But what is meant by superlinear speed up? Is it something theoritical? Could you explain it with equations?
I'm implementing the ID3 algorithm (Iterative Dichotomiser 3). I have an attribute which happens to be continuous like 12.21, 3.01, etc. AND have missing values which are marked as "NA". How I'm discretizing the data: I'm finding the optimal split which results in the max information gain. How I'm dealing with missing ...
I understand what it is, but I don't see how it is any use for algorithms or anything. Maybe I am missing something. I need someone to give me an example of how it can be used so I can understand it better.
I am working on a research paper and we are developing a brute force algorithm to examine another clustering technique. In this brute force algorithm we test every possible clustering example and see what natural clusters occur. The problem comes from the assignment of every possible clustering. If give each value a cl...
Consider a DAG of $N$ nodes, where each node can take on one of two value, either false, $0$ or true, $1$. Additionally, let each non-leaf nodes (nodes with parents) be assigned a type: either an AND node or an OR node. Under this setting, I define a notion of a feasible state. A state is a feasible if and only if: fo...
Reading Chris Hankin's book, "An Introduction to Lambda Calculus for Computer Scientists", I learnt that the rules for reductions in the pure $\lambda$-Calculus are the $\beta$-reduction rule, $$(\lambda x.M)N = M[x:= N]$$ and also these: $$\frac{M=N}{N=M}$$ $$\frac{M=N}{MZ=NZ}$$ $$\frac{M=N}{ZM=ZN}$$ $$\frac{M=N}{\la...