instruction
stringlengths
35
29.1k
I've found plethora of papers describing the performance advantages and basic correctness proofs of the hub-based labelling shortest path algorithm. However I'd like to implement the algorithm, and short of doing it from scratch don't see much of any other way. Is there a resource or a project where such an algorithm...
I am trying to prove using the resolution technique that the following two clauses are contradicting: $\forall_x Shaves(Barber, x) \iff \neg Shaves(x, x)$ $\exists_x Shaves(x, Barber)$ After turing those into the conjunctive normal form and skolemization I get the following clauses: $\neg Shaves(Barber, x)\ \lor\ \...
I think this is again an easy one: $DTIME(f(n)) \subset DSPACE(f(n))$ They say its trivial but I dont see it, why? And would $DTIME(f(n^2)) \subset DSPACE(f(n^2))$ also be true? if yes why or why not?
I'm trying to design a CFG that accept the words of the following language: $$L = \{a^i(b+c)^jd^k \mid i<j+k; \quad i,j,k>0\}$$ My first approximation would be to do $i = j+k$ as something like: $S\to aSd \mid X$ $X\to aXY \mid aY $ $Y\to b \mid c$ But then I don't know how to make the jump to the $<$.
Suppose A∪B is NP-hard, does it follow that A is NP-hard or B is NP-hard? Equivalently, is the property "not NP-hard" closed under union? A related question was already asked: Are NP-complete sets formed from two other sets only if at least one is NP-hard? but it seems no consensus was formed.
Lets say Problem A,B are in NP. Can we reduce Problem A to B? Meaning A $≤_p$ B? or A $≤_t$ B Is there a difference in "hardness" of a Problem even in NP? Or must Problem B at least be NP-Complete?
I have a NN that has ten outputs. The output values range between 0 and 1. The elements in the target array are all zeros except one element, which is "one". I am searching for a Fitness Function that will correctly evaluate (score) the Neural Networks. Currently, I am trying to calculate the distance between the targe...
Suppose a program has a set $S$ of $n$ numerical ranges, each described by a pair: (lower bound $l_n$, upper bound $u_n$). The program receives a number $x$; it must return all ranges in $S$ that enclose $x$. An example in practical terms: in timeseries data, you have a set of $n$ independent events that occur over ran...
I've developed LSD radix sort algorithm that is stable, about as fast as the classic LSD radix sort, require only $O(\sqrt{RN})$ extra space when we sort into R buckets. The same technique also allows to perform stable, efficient, almost in-place merge & quick sorts; as well as stable almost inplace merge/partition ...
My math level is very very poor so I can't get the statistics. Can anyone explain in simple words? I.e. if I have frequency data: Apple: Colors: Green = 3, Red = 2, Orange = 0; Shape: Sphere = 5, Ellipsoid = 0. Orange: Colors: Green = 0, Red = 0, Orange = 5; Shape: Sphe...
I have been thinking a lot on some questions related to centres, diameter ($D$), and radius ($R$) of an undirected connected graph, but couldn't find anywhere the answers, so am posting here. Ques1. If $x,y$ are two vertices such that distance between them is $D$, then is it true that any shortest path between them wil...
Show that, for every n >= 7, there exists a tree of n non-labeled nodes such that picking each of the n nodes as a root results in a different rooted tree.
My idea is to (not formal) push an 'a' when we see an a, nondeterministically guess when n a's were seen from the input word, go to the next state. From there, when we see an a, push 2 'a's into the stack and again guess when n a's were seen (now there should be 3n 'a's in the stack) and go to the final state, where if...
I've read about the reduction from $2$-partition for the problem of minimizing weighted completion time with release dates but I'm not very experienced in doing reductions so I want to verify that my understanding is at least in the right direction. First, my understanding of the problem is that we would like to compl...
I know how to get longest zigzag sub-sequence and length of it. There are several methods available for that. But some times there are many sub-sequences available which have same length. How to obtain that?
What is the relationship between $\text{deg}(T)$ and the number of leaves of $T$, if $T$ is a tree?
Suppose we have a term rewrite system $\mathcal{R} = (R, \Sigma)$ with basic rewrite rules $R$ over a signature $\Sigma$. Suppose also that this rewrite system $\mathcal{R}$ is confluent and terminating, and that each constant symbol of $\Sigma$ is a normal form with respect to $\mathcal{R}$. Now suppose that we want t...
This is a question from Cormen 3rd edition(exercise 10.1). I am of the opinion that the complexity should be O(1), as we just have to look into the next pointer of the current node. But the answers from the web suggest that it should be O(n). Where am I getting it wrong? Can someone please help me out??? Thanks in adv...
I wanted to verify some graph properties on all possible graph enumerations (or graphs satisfying certain properties). There is a list of all the graphs upto 10 vertices here, but that is not sufficient for my use. So I had two questions: Which would be the most user friendly and RAM efficient program/library to work ...
Given two sorted arrays of floating point numbers $X$ and $Y$, we can define the S-distance as follows. The S-distance is defined as the minimum cost associated with the transformation of one point pattern $X$ into a pattern $Y$ by deleting, adding, and moving points (that is adding a constant to all points). The cos...
Yes, I know it's uncomputable in the general case. What I want to know is what special cases have been solved, and if there is work ongoing on finding or developing more of them. To be a little more explicit about the sort of thing I'm looking for, total functional language compilers have to approximate the halting pro...
I am seeking a data structure that maintains an array of N numbers and supports the following two operations: Double the first i numbers Subtract the first i numbers of a previous version from the current version. It always starts with an array filled with 1s, and we only need to know the final array (after all opera...
Let's assume the you have two algorithms for computing some single but complicated number (e.g., the Ramsey number $R(5,5)$). Both are provided as high-level, half-formal textbook descriptions. The first algorithm, by means of some textual reformatting and filling in the usual gaps in high-level reasoning, can be easi...
I have a formula in FOL: $\forall x \exists y: B(x) \implies C(y)$ and in SPASS: forall([X], exists[Y], implies(B(X),C(Y))) I want to check the formula: $\exists x: B(X) \implies C(X)$ and in SPASS exists([X], implies(B(X), C(X))) The problem is I want to determine that X and Y are different (like in my first formula) ...
Let's say I have a map with factories and selling points. I want to trace the paths from factories to the selling points with the lower possible cost. The image bellow is an example of a possible solution for that map, then the output of the algorithm should be two trees with the edges of those trees. If there is only...
What is the meaning of the term $\mu t$ in the type theory formalized in this paper (section 2.1, page 2)?
For a lecture I am attending, we have to prove that $$\forall \big(a \textsf{U} (b \land \forall \square a)\big) \equiv \big(a \textsf{U} (b \land \square a)\big).$$ That is, we need to prove that for the CTL formula $\forall \big(a \textsf{U} (b \land \forall \square a)\big)$, the LTL formula $\big(a \textsf{U} (b \la...
The problem is taken out of Theory of Computational Complexity: Now, I think I've successfully proven that $ALL_{NFA} = \{(A) : A$ is an NFA and $ L(A) = \Sigma^*\} \leq_p MIN_{NFA}$. Which implies that $MIN_{NFA}$ is PSPACE hard, as the latter is itself. However I'm stuck proving this problem is in PSPACE - I've tho...
This was an old exam question. I think, though, that it is some sort of trick question. Isn't this simply decidable and therefore also trivially co-semidecidable? Because I wouldn't know how to prove that it is co-semidecidable for itself. Being co-semidecidable means that there is a chance that the algorithm (that ch...
It is well-know from Puterman's book (1994) that in any finite-state MDP, if there exists an optimal policy, then that policy is stationary and deterministic. How about MDPs with continuous state spaces with finite-action space? Assume that the rewards are bounded.
Are there some references about concatenative programming languages with the normalization property?
In my economics research I am currently dealing with a specific shortest path problem: Given a directed deterministic dynamic graph with weights on the edges, I need to find the shortest path from one source $S$, which goes through $N$ edges. The graph can have cycles, the edge weights could be negative, and the path...
For language $L$, we have $\forall\varepsilon > 0,L\in\mathcal{O}(n^\varepsilon)$. What is the class of $L$? It is obvious that $L\in$ polynomials. Is there a smaller class for $L$? For example, $L\in\mathcal{O}(\lg(n))$ or $L\in\mathcal{O}(\mathrm{polylog}(n))$?
As far as I've understood it seems that LL1 are a subset of LR0, but studying the following grammar I end up in a contraddiction. Grammar : S -> (S) | [S] | {S} | ε This is an LL1 while it seems to me that it isn't LR0 because of a conflict shift-reduce in the initial state I0 of the LR0 automa caused by this: S -> ....
I have 20 words. One permutation of these 20 words is the "correct" one. Assume I have a metric to find the correctness of the permutation. I'm trying to figure out how to use simulated annealing to find the correct permutation of these 20 words. To begin with, I'm not even sure if I understand simulated annealing enti...
In order to understand examples of formal proofs, I am interested in how CompCert applies "proof" techniques. Specifically, I am wondering what a particular example is of something CompCert "proves" in their GitHub repo, so I can get a grasp of how proofs are applied in practice (to something that is somewhat familiar,...
In order to understand how to apply Model Checking, I am wondering how to apply it to a pseudo-realistic async program. Say I have the following pseudocode: var array = [] window.onclick = a function a() { setTimeout(b, 10) } function b() { setTimeout(c, 100) } function c() { var data = new Data(1) array.pu...
I am reading https://www.cs.cmu.edu/~fp/papers/pldi88.pdf and https://en.wikipedia.org/wiki/Higher-order_abstract_syntax for trying to understand encoding of linear logic using HOAS into Coq. But I still cannot grasp whats going on? Is there simple concrete example available for using HOAS? E.g. exmaple in concrete syn...
This question could be trivial but I have tried to come up with an algorithm to list the most and least frequent elements in an array of int with just one loop, i.e O(n). [1,2,1,1,3,3]: Most frequent: [1,1,1] Least frequent: [2] I'm aware that it's possible to do that with two loops. One to aggregate the count of each ...
In Coreman , it's written : The $O(n^2)$ bound on worst-case running time of insertion sort also applies to its running time on every input. The $\Theta(n^2)$ bound on the worst-case running time of insertion sort,however, does not imply $\Theta(n^2)$ bound on the running time of insertion sort on every input. So, is...
Given the following definition of Careful 5COLORING: A 5-coloring is careful if the colors assigned to adjacent vertices are not only distinct, but differ by more than 1(mod 5) how would a reasonable reduction to prove NP hardness work? Suggestion is to reduce from standard 5COLOR, but I am not able to find a corre...
I am trying to solve an exercise on set-associative cache , i struggled with it for a while but i think that i figured out the answer , would be helpful if someone could check if my solution is correct Here is the question: Considering a main memory with 1024 addresses , divided in blocks of 8 words each, and a set ass...
I am having a problem in understanding a conflict between reversibility in quantum computation and the No cloning theorem. Given a function f, we construct the reversible version of f by adding additional input and output wires to the circuit for f, possibly outputting junk bits. We then "copy" the output to another re...
Is there a difference between a complete graph and a clique topology? As far as I understand, both refer to graphs in which every possible edge between any two vertices is present. Is there a subtle difference between these two concepts?
As the title states, I would like to know what a hashing routine is. I found online about hashing algorithms but I heard it, being used in a different context.
Are there research trends that try to research code generation directly from the (operational or some other kind of) semantics? One can imagine cognitive architecture that discovers and reasons about the tasks that the software should do and constructs the operational semantics of some program. And later there should b...
If I have a list of length 'n' where each element is a successive power of 2 would an algorithm that simply prints each element decremented to 1 be classified as exponential time? print([2,4,8,16]) #operations:1 print([1,4,8,16]) #operations:2 print([1,3,8,16]) #operations:3 print([1,2,8,16]) #operations:4 print([1,1,8...
I am trying to understand the basics of Linked List. The definition of my LinkedList class is as follows: public class ListNode { int val; ListNode next; ListNode(int x) { val = x; } Now I am facing a problem. My code is as follows: ListNode dummy = new ListNode(0); dummy.next = head; ListNode prev = dummy; ListNo...
Checked out a few papers on Skip Graphs: Locally Self-Adjusting Skip Graphs Adaptive Probabilistic Skip Graphs Skip Graphs Family Trees All of the insertion/deletion algorithms assume that you have selected a start node to begin the search. However, it is not described how the start node is selected. In doing some in...
Wikipedia says the following (and more) about the logical characterization of the P versus NP problem here: Thus, the question "is P a proper subset of NP" can be reformulated as "is existential second-order logic able to describe languages (of finite linearly ordered structures with nontrivial signature) that first-o...
Finite automata is defined as a simple machine having small memory. A deterministic equivalent of a NFA with n states will have O(2^n) states,so the number of states grow exponentially. So can we always call the deterministic equivalent to be a finite automata just by saying that as n is finite 2^n will also be finite ...
I wonder if there are papers that uses max cut algorithm(s) to cluster data. For example, if an edge between two nodes $u$ and $v$ indicate that $u$ and $v$ are different, then the max-cut in some sense partition the data into two clusters in a meaningful way.
Let $A,B$ be two languages, for which we know: $A \in PSPACE$ $A\le_LB$ Can we conclude from the above that $B \in PSPACE$ ? I think the answer is no, however I don't know how to prove it. I guess I have to write a reduction that proves otherwise, but how? Thank you!
The Answer here shows a way to solve the problem with O(1) space. The approach uses Binary Search. I am finding really hard to wrap my head around why it works. I get why we did low + (high-low)/2 cause we needed to adjust the mid value based on the start and end of our range. The thing I just can't seem to wrap my hea...
Here on the page 354 Arora and Barak write below the shaded area "but in fact $f(\phi)$ $\notin SAT$" and not "but in fact $f(\phi) \in SAT$" While in the last line of the shaded area they write $Pr[f(\phi)\in SAT]=0$ Shouldn't there be in that last line also not: $Pr[f(\phi)\notin SAT]=0$ ?
How much time would be needed to compute a minimum k-cut, which has time complexity $O(n^k)$ on a graph with $n=5000$ and $k=30$? Consider using a basic 2GHz and 8GB RAM laptop. Please explain also the process of how to compute the answer.
I've learnt about complexity classes but my knowledge doesn't seem to help much when I am given a problem and need to decide it's complexity. Here is the problem at hand: A set of weights with the same dimensions but with different densities have to be ordered on a plank (on a straight line). The length of the plank i...
I have seen the following statement, and I don't quite understand the reasoning behind it: If a Turing machine repeats the same configuration twice, it must be in an infinite loop. I thought that a $TM$ can be in a state $q_1$, with the tape on the left 000 and on the right 111. Let's say it moves right and then left...
I need to find the kth smallest element in an unsorted array of non-negative integer. kth smallest element is the minimum possible n such that there are at least kth elements <= n. The rub here is that the array is read only so it can't be modified. Also i have to do it in constant space. Can anybody help come up with...
Let L be a regular language. Then $\Sigma^{*} \backslash L^{*} = (\Sigma^{*} \backslash L)^{*}$ How do I prove it is wrong?
I'm stuck with the proof. I've tried Ogden's lemma but it doesn't seem to help. The problem is: Let $N$ be the constant of Ogden, let $z = a^N b^{N+1} a^N b^{N+1}$, and $z = uvwxy$. Now I should choose which symbols to mark. I tried with all the first $N$ $a$s (and also other combinations), but then for $v=a^j$ and $x=...
Just out of curiousity: Both Introduction to Algorithms (Cormen et al), Wikipedia, and prior cs.stackexchange questions all present the Lomuto partition as: algorithm partition(A, lo, hi) is pivot := A[hi] i := lo - 1 for j := lo to hi - 1 do if A[j] < pivot then i := i + 1 swap A[i] with A[j] s...
I am trying to define an If statement, but am stuck because the definition/implementation of If is circular from what I have tried. For example, here is one definition: class If { provide: Condition provide: TrueBlock body: If (Condition) { call(TrueBlock) } } You can then use it like this: If (tru...
I learnt Ardens theorem and its usage as follows: Ardens Theorem Let $P$ and $Q$ be two regular expressions over alphabet $Σ$. If $P$ does not contain null string, then $R = Q + RP$ has a unique solution that is $R = QP^*$ Using Ardens theorem (source): Using Arden's theorem to find regular expression 1. For...
recently i was solving a programming question on uva judge Stacking boxes link to the problem : https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=3&page=show_problem&problem=39 EXPLANATION PART consider a box with n-dimension and there are k different boxes with n dimension each so the ta...
When software boils down to assembly, it is just a sequence of instructions like this: mov rax, 1 mov rdi, 1 mov rsi, message mov rdx, 13 syscall mov rax, 60 xor rdi, rdi syscall I am not sure exactly how the program evaluator works (the thing navigating about the assembly / machine code), but I think it just goes seq...
While I was reading about memory architecture from the CMSC 22200's Lecture 17 of University of Chicago, I got stuck on determining the meaning of the word "CS" used for describing a bus as part of memory channel: However I didn't find any additional source pointing out that bus. And furthermore, I found on different ...
Given a directed weighted graph with non-negative weights, how can I find all edges that are a part of any of the shortest paths from vertex X to Y? In the example below the yellow edges are the solution for finding the shortest path between A and D (note that other examples may have more than one path). I know how to...
I have this optimization problem I have no idea how to solve it. Is Lagrange suitable for this problem? Thank you
I stumble across this problem: Give right linear grammar. The solution given was simple: $S\rightarrow bA$ $S\rightarrow aS$ $A\rightarrow \lambda$ $B\rightarrow bA$ $A\rightarrow aB$ Earlier I came across problems specified in this post, which involves applying Arden's theorem to left linear and right linear equa...
There are at least two ways to flatten out a nested function. Both of them need to keep a certain amount of state to accomplish this. The two ways are: By creating several boolean variables for each part of the function. By creating a tree data structure that is navigated. Say we have this function system: function a...
Consider a digital curve, i.e. a sequence of points at integer coordinates, with unit taxicab distance between them. I want to find the isthmuses, i.e. sections of the curve that are close to each other (within a fixed threshold), though the indexes ("curvilinear" abscissa) differ by a large amount. For a curve of leng...
I'm reading a paper about constraint satisfaction problem and found a term "binary Max and binary Min" operations but I dont know the meaning. If someone know could you please explain for me? I googled it but didn't find nothing.
Let $\mathcal{R} = (R, \Sigma)$ be a term rewrite system over a signature $\Sigma$ with set of basic rewrite rules $R$. It is known that $\mathcal{R}$ is terminating IF every basic rewrite rule $l \to r \in R$ has the following two properties: The length of $l$ is strictly greater than the length of $r$. For any varia...
In Reversible Computing, all program statements are reversible. I understand for example that the following: \begin{align} x\ {+}&{=}\ 4\\ y\ {*}&{=}\ x\\ x\ {-}&{=}\ 10 \end{align} Has the inverse: \begin{align} x\ {+}&{=}\ 10\\ y\ {/}&{=}\ x\\ x\ {-}&{=}\ 4 \end{align} However, I am not following the following if sta...
Wondering how to prove different compiled forms of a program to be "effectively the same" or "equivalent". For example, you can have a program represented as your normal nested function calls, or have the same program represented as a state machine. In addition, you can inline all of your functions, or leave them neste...
I can not find any simple and detailed source of how to add non-recursive let-expressions to pure type systems. The best I found is the Henk paper by Simon Peyton Jones, but his explanation of this point is very brief. Can someone link some references about this topic (source code is accepted)? EDIT The let I want to a...
The document (see pic. below) states that it is possible to find a cover of the plane by a subset of 3 half-planes. It proposes to use linear programming for this. How to formulate such a program? The original document can be found here: On the Separation of a Polyhedron from Its Single-Part Mold. EDIT: For clarity: i...
Given two $n$-number arrays $a_1, a_2, \ldots,a_n \in [0,1] $ and $b_1, b_2, \ldots,b_n \in [0,1] $. We would like to find the real number $x^{*} \in (0,1)$ s.t: $x^{*} =\arg\max_{x} \sum_{i=1}^n \mathrm{sgn} \big( (a_i-x) (b_i -x)\big) $ Where $\mathrm{sgn} = 1 $ if $x \geq 0$ and $\mathrm{sgn} = -1$ if $x < 0$ Thi...
I have the following basic BNF grammar: <A> --> <id> = <E> <id> --> A | B | C | D | F <E> --> <E> + <T> | <T> <T> --> <T> * <F> | <F> <F> --> <E> | <id> Operator (*) should have higher precedence over (+). However, see this statement: A = A + B + C + D * F The leftmost derivation (and parse tree) indicate the o...
I do not know if I miss something in the definition of a hyper-cube, but as far as I understand, Hyper-cube graphs have 2^n vertices and if written in binary form, "one-bit difference" strings of numbers are linked with an edge. From this definition, De Bruijn graph does not look like it is a hyper-cube, because 000 a...
I have a data structure that implements the following operations all in $O(1)$: $\text{insert(x)}$, inserts a value into the data structure and returns a unique key $k$ to the value $\text{delete(k)}$, deletes the value at key $k$ and returns it $\text{get(k)}$, returns a reference to the element at key $k$ Internall...
I'm fairly new to deep learning, so if terminology makes no sense, please let me know so I can clarify what I mean. We're working with a neural network for applying classes to inputs. That is, each output unit represents a target class, and its activation denotes the amount of relevance for a given input. The output la...
Is there a language $L \subseteq \{a\}^*$ such that both $L$ and its complement are not context free?
I know what data structures is, How it works & importance of it. I just have some doubts on where do we actually use it. When database can do filtering, fetching, sorting efficiently, Why we need to use data structures in db data? I was working on a project which uses Cassandra database. In that I'd to filter data bas...
Problem: In the generalized assignment problem with unit-value items, there are $m$ bins of capacity $C$ each. There are $n$ items where each item $i$ has weight $w_{ij}$ with bin $j$. The objective is to assign the items to the bins (while respecting the bins capacities) such that the number of assigned items is maxim...
Suppose I want to broadcast from my root to all the nodes in a BFS tree. What is the time complexity of this process? I know that it is suppose to be proportional to the depth of the tree, like O(Depth). A more formal way of saying this could be O(Diameter) or maybe O(Radius of the Root) if you want to be more specific...
I have a matrix $P \in M_n(\mathbb N)$, where $$ P = \begin{bmatrix} 0 & P_{12} & \ldots & P_{1n}\\ P_{21} & 0 & \ldots & P_{2n}\\ \vdots & \vdots & \ddots & \vdots\\ P_{n1} & P_{n2} & \ldots & 0 \end{bmatrix}$$ with $P_{ii} = 0$ for all $i \in \{1,2,\dots,n\}$. I need to find matrices $A, B \in M_n(\math...
I want to design a Turing machine that accepts at most 3 0s. Now, I have designed one, which goes to accept state overtime it sees 1, 2 and 3 0s and rejects any further 0s. I wanted to know if it is okay for TM to go to accepting state from 3 different states?
This is very unclear to me. I understand what the left quotient is, however, can someone explain this: A={0,101} B=01,10,001} then how is A\B={1,01} I mean where are these strings extracted from? I dont see them in A. How can I appeand 01 to anything is B to get something in B?
I have this question to answer: "Please shortly explain how an interface virtualizes a peripheral device to the CPU." I don't really understand what the question is asking for. I know the theory behind virtual memory. I understand that a harddisk can be seen as a peripheral device. Could the theory behind virtual memo...
Hello dear stackexchangers, I have a simple question, and I would like to say that I am not a scientist. When I read the problem statement on this link: http://www.claymath.org/millennium-problems/p-vs-np-problem Suppose that you are organizing housing accommodations for a group of four hundred university students. Sp...
Given some fixed number of nodes $n$, which we will number 1 to $n$ in order to tell them apart, how many different strongly connected graphs can be created? Multiple edges with the same starting and ending nodes should be considered redundant and not contribute to the total. For example, if $n$ is 2, we can create onl...
I want to know if this progressive image compression that I have in mind exists and it it does I want know its name and/or get some references about it. The algorithm consists of converting one high resolution image in multiple low resolution images (all of the same size, not like in wavelet transform) with the followi...
As far as I see, what computer scientists refer to as loop invariant proofs are exact replicas of induction proof. Is it true? Can I state that loop invariant proof implies an induction? Is there a theoretical difference?
Introduction I am wondering if there is a generalization of parallel processing / asynchronous communication that explains/models how to deal with a hierarchy of parallel processes. Mainly looking for a reference of some sort, or an explanation if possible! Basically I'm having the problem of how to handle the followin...
I have thousands of times series of different length and different time. I want to group them together so that I know the optimal ones to pick as input for a ML algorithm and to document how they are related. Those times series are from stations, some of them inactive and some still active. My goal would eventually be ...
I have some binary trees, and I'm looking for a metric to quantify how "balanced" a tree is. I don't have a rigorous definition for "balanceness", but my intuition suggests it's a measure of how close the shape of a tree is to a "fully balanced" tree, or how "skewed" the tree is. I was thinking a possible metric would ...
More specifically, has anyone used a chain of theorem provers to validate a highly evolved theorem prover, starting with a very simple hand checked prover such that each new theorem prover is used to validate a somewhat more complex theorem prover, rinse repeat? This would be something along the lines of induction, I g...
Suppose that there are rectangles in the Cartesian plane, each aligned with the axes---the rectangles are defined by left and right x-coordinates and top and bottom y-coordinates. There are two operations on rectangles: SPLIT partitions a single rectangle into two adjacent rectangles with either a horizontal or verti...