instruction
stringlengths
35
29.1k
I am writing a UI that needs to display a chat log, similar to Slack and Discord. In addition to being able to scroll and lazy-fetch additional pages in either direction, I need to be able to jump to a specific point in time and fetch the message records "around" it (a backend API problem, of course). I need a "lazy ra...
If I have a DFA $D$ that accepts some regular language $L$, is it possible to construct some finite-state transducer $T$ that takes in an index $i$, and puts out the $i$'th word in $L$, ordered lexicographically? I know from this paper that you can construct such a transducer that maps from a given word in $L$ to the n...
I am studying computer architecture in my university and there is something that's troubling me. I get the bigger picture of how instructions are executed in the fetch - execute cycle and the complete process of a program being read by the compiler and then into machine code.... In my Digital Logic Design class I have ...
New to algorithmic thinking so looking for some guidance – especially as there might be multiple approaches to this. Say you have a list of 100 distinct items. These items are ranked in order of preference. Their prices range from ~1 to ~100 USD. You have a fixed budget of 30 USD in one month. eg. (in order of preferen...
Is there an AI algorithm that generates 2D vector images with given examples like the the below images that is accessed on a website or something?
A polynomial hash of a string $s$ with base $b$ and modulus $M$ is defined as $$ H(s) = (s_0 + s_1 b + s_2 b^2 + \dots + s_{n-1} b^{n-1}) \mod M. $$ I have proven (and this is quite obvious) that collisions are more likely if $b$ and $M$ have common factors. I have also proven that if $b \perp M$ and $s_i$ are random n...
In Algorithms 1, I'm noticing that big-Theta running times are always used for recurrence relations when using the iteration method. Meanwhile, using the Master Theorem always seems to result in a big-O. Is this always the case for Master Theorem and iteration method, respectively?
Internet speeds vs. computer boot speeds: Both cases involve digital signals being decrypted, analyzed, and transmitted via software and hardware. Signals from a computer boot only travel as far as the distance between its internal components. But, internet signals travel all over the world. How come when you search Go...
The recurrent function $T(n) = \frac78T\left(\frac78n\right)+\frac78n$ where $T(1) = 0$ and $n = \left(\frac87\right)^k$ represents the running time of an algorithm. How can I find a more simple form (depending only on n) of this function? I kept replacing $T\left(\frac78n\right)$ and $T\left(\frac78\times\frac78n\righ...
I have used KNN for predicting the output power of solar panels. I have done feature scaling based on normalization for all data points. The problem is that the MAE is equal to 0.08, and MSE is equal to 0.06. I know that MSE must be greater than MAE. What is the reason behind that ?
I want to assign $m$ tasks to $n$ workers where $m>n$, so as to minimize assignment costs defined by an $m \times n$ matrix $C$. That is, I want to find Boolean variables $x_{i,j}$ which minimize $$ \sum_{i=1}^m \sum_{j=1}^n C_{i,j}x_{i,j}, \\ s.t. \sum_{j=1}^n x_{i,j}=1 \text{ for all } i=1,\dots,m $$ Rather than a se...
I saw on Wikipediathat Hierholzer's algorithm has a time complexity of O(E), but won't the dfs used in this algorithm would cause the total time complexity to be O(V+E) instead of only O(E). Assuming we performed the dfs on an Adjacency list. Assume the graph is a connected graph with only one component. Thanks for the...
Multiple sources state that the time complexity of adding a vertex to an adjacency list is O(1) and my understanding right now is that this is because of optimizations with hash tables. If we use an array of linked lists, then the time complexity is O(V) right? Because to add a new vertex we have to make a new array of...
In Arora and Barak's textbook, page 261-262, in decision model complexity, they states: Address Function: Suppose that $n = k + 2^k$ and let $f$ be the function that maps $x_1, x_2, \dots, x_k, y_1, \dots, y_{2^k}$ to the input $y_x$. That is, the function treats the first $k = \log n$ bits as an index to an array spe...
Are conditional statements, loops, and basic maths operators are functions? I learn functions as a "specific action". But, I saw in a video from youtube that a guy called loops and math operators "Functions". Was he right? OR, I have to modify my definition of functions?
I am looking for the best known approximation algorithm for the scheduling problem $P2|tree;p_j=1;M_j|C_{max}$, which to my knowledge is at least $\mathbb{NP}$-hard. A more elaborate description of the problem: I want to find a non-preemptive schedule on two machines with minimum makespan for $n$ jobs with uniform proc...
Problem description: You are given an integer array Inventories representing the ribbon inventories, where Inventories[i] represents the length of the ith ribbon, and an array of orders. Each order in orders is an array of integers, representing the ribbons needed with certain lengths for that order. For example, if o...
I'm trying to figure out the asymptotic estimate of $\frac{(\sqrt{n}+n-1)!}{(\sqrt{n})!(n-1)!}$. I think it is $\omega(2^{\sqrt{n}})$ and am trying to prove it by showing $\lim_{n \rightarrow \infty} \frac{\frac{(\sqrt{n}+n-1)!}{(\sqrt{n})!(n-1)!}}{2^{\sqrt{n}}} = \infty$ as wolfram says it should. But can't seem to ge...
My first question here. Please do not judge me much if this is a too simple. Some text consists of $n=12\,500$ distinct words. I would like to construct a Bloom filter with $\epsilon=10^{-2}$ probability of false positives. Using well known formulas, the optimal filter size $m$ is computed as $$m=-\frac{n\log\epsilon}{...
Can somebody please explain to me, how one can calculate W = 2762827861, 1991065600 from previous representation B? An example calculation would be great. I am unable to figure out how the translation from the second last to the last row works. The figure is dealing with elements of fixed size. In the first row you sim...
I have a problem regarding dependencies. I'm making a circuit simulator thingy and I stumbled upon the problem of determining which circuit component should be updated first (since updates in my case mean that the output is transformed based on its inputs according to some specified behaviour, the behaviour being irrel...
I have used KNN for predicting the output power of solar panels. The results are shown below: Test Set: MAE = 0.044 MSE = 0.004 Standard Deviation = 0.272 Cross-validation: MAE = 0.049 MSE = 0.005 Standard Deviation= 0.001 Now my question is, why the difference between standard deviations is too much in th...
I am reading the paper "Collaborative PAC Learning" by Blum et al. So I will try to setup the problem here as to avoid reading the complete section (personalized setting). Assume there are $k$ agents that are learning a labelling function $f^{*} \in \mathcal{H}$ of Hypothesis class $\mathcal{H}$ and observe a distinct ...
Certain algorithms require two independent hash functions. An optimization I've seen is to split the output of a wide hash function and use the parts instead of the two independent hash functions of shorter output. For instance, double hashing is often used as a technique to compute the k independent indexes required b...
I am fascinated by the bloom filter data structure. Is there a similar probabilistic data structure that can efficiently store and update the relationships between certain elements and the strength of those relationships?
In my computational geometry book they present the following $O(n^4)$ algorithm for computing the convex hull of a pointset $P \subset \mathbb{R}^2$ assuming general position on the points in $P$: For all $O(n^3)$ triangles do an inclusion test for every point not yet discarded to see if they lie inside the triangle. I...
The word swizzle can refer to an operation performed in GPU algorithms: [The] ability to compose vectors by arbitrarily rearranging and combining components of other vectors. Swizzle (computer graphics) - Wikipedia I've found another reference to "swizzle" in a CS context when dealing with pointers, i.e. Pointer swiz...
While reading up about Conway's Game of Life, I often come across the term conservative or non-conservative dynamics. What exactly does these terms mean? My guess is that a certain quantity (e.g., number of dead cells) always remains the same as the system evolves. Is this what it means? Thank you. The paper I was look...
I am studying assembly language. I feel very difficult in understanding few instruction. ADD R1,R2,[R3] ADD R1, R2, R3 What is the difference between these two instructions. I think second instruction takes the value in R3 register and add it to the value in R2 register and store it in R1 register. Then what does it me...
Let Σ = {a, b} and L = {ww | w ∈ Σ∗ and w is of length k}. Show that for each k, no DFA can recognize L with fewer than 2^k states. What I understand is that we prove this by contradiction. Assume that L has less than 2^k states i.e L has 2^k -1 states. We then use the pigeonhole principle which would mean that two of ...
I am discovering the topic of Genetic Algorithms, I read a bit about it on wikipedia and towardsdatascience. When I checked papers some papers, I found them using the notation "$(1 + (λ, λ))$" Genetic Algorithm. What does it mean exactly? They also use the notation "(1 + 1)" evolutionary algorithm. Any idea what thes...
I am trying to design a (deterministic) one tape Turing machine that can accepts the following language L = {0^{n^2} | n belongs to N} , but so far i couldn't find a proper solutions, neither in similar questions. I know it's a pretty general problem, but I'm stacked so far and I'm not having any good idea. Thanks in a...
A friend and I were surprised that C still has near-best performance among languages. I thought about why this is, and I wrote up a few paragraphs. I wonder if the friendly folks on CS stack could tell me where I'm wrong, too vague, or misleading. This will help me sharpen my understanding of the situation. One reason...
Analytic combinatorics and concrete mathematics are the mathematics of asymptotic counting, and they draw from combinatorics, analysis, and probability. These techniques have been applied to the analysis of algorithms, e.g. in books by Knuth and (his student) Sedgewick. However, the results tend to be very precise -- t...
I am trying to understand the fundamentals of Bayesian machine learning and I found an interesting task, which I have tried to solve: We are in the setting of a binary classification problem with $Y=\{-1,+1\}$ and an input space $X=\bigcup\limits_{i=0}^{n} X_i$, where all $X_i$ are disjoint sets. Further, we are given ...
I am trying to understand how asymptotic complexity of the given function is calculated based out of Introduction to algorithms by Thomas Cormen. In the book we are trying to solve inequality for $f(n) = \frac12n^2-3n$. It is solved such that $c_1n^2 \leqslant \frac12n^2 - 3n \leqslant c_2n^2$. Dividing both sides by $...
I've heard that the MAC Model prevents Trojans to charm files on the system. How is it possible? Can somebody show any example that MAC model protects us against it?
I've had an exam in computational models a few days ago, and would like to check whether I made a mistake. The question goes like that: Is there a language $ L \notin PSPACE $ over the alphabet {0,1} such that $$ L_{pad} = \{wp^{2^{|w|}-|w|} | w \in L\} \in PSPACE $$ over tha alphabet {0,1,p}. On the spot I answered no...
I am making a clone of Clash Royale which is basically a Tower Defence game. As you can see from the picture you can deploy different troops only in your side of the court (that blue rectangle), and they will automatically target the enemy tower (placed in the enemy court in red) or, if there is one, the enemy troop n...
I was reading [1] about reachability analysis of a feed forward neural network (FFNN). The paper encodes a FFNN as a linear programming problem. Suppose $x^{(i)}$ is the vector output of the ith layer, $W^{(i)}$ is the weight matrix corresponding to layer i, and $b^{(i)}$ is the bias vector. So by definition, the outpu...
Let $G = (V,E)$ be a directed graph with source $s$ and sink $t$ and $s \neq t$. For each edge $e \in E$, we have $c(e) \in \Bbb N$. Also, we are given a max flow function $f$ on that network. Let $R_f$ be the residual network of $f$. I would like to prove that the set formed by all the nodes reachable from $s$ in $R_f...
In Programming there is different data types (int , cahr , bool , float ) and they have different sizes (1,2,4,8 .. Bytes) , and the size of data type are depends upon hardware or architecture of computer or any thing else? as a beginner give me answer in simple language plz !
recently i started studying computer science and computer graphics, and one question really haunts me. Mby someone can explain this. How bit patterns become translated into (for example ) text. I know we have encoding like ascii and unicode but this is also just bit patterns. Main mystery is at what point do the bits t...
My purpose is to write a journal paper related to shared computing more abstractly (simply cost model) and I need to refer to these variables in both equation and its corresponding pseudocode. I want define variables of a struct as mathematical notation. I get lost in between programming and mathematical concept. I'm t...
I am trying to write a simple parser for a small calculator project, that should be able to parse e.g. the following inputs: 5 + 3 5 + f(4) 5 + f(x) x = 5 f(x) = 3*x so basically, I want to be able to parse expressions (that may contain variables and function calls), variable assignments, and function definitions usin...
I'm looking for what I think is a random number generator, it should have the following properties, but I'm completely uncertain how to look for a suitable algorithm. I'd appreciate either pointers to a specific algorithm, a class of them, places for starting my research, or an explanation of why what I'm looking for i...
I have a search problem, finding the shortest path for 3 vehicles to their parking spots, in a continuous environment (inputs are continuous for velocity, turn speed) and the location is continuous, ie. the landscape is a discrete grid but within each grid it is continuous. There are areas where the top forward velocit...
In the field of mining of data streams the algorithm of Datar-Gionis-Indyk-Motwani (DGIM, M. Datar, A. Gionis, P. Indyk, and R. Motwani, “Maintaining stream statistics over sliding windows,” SIAM J. Computing 31, pp. 1794–1813, 2002.) is known. Given is a binary stream with a sliding window of length $N$, where $N$ is ...
Prove that $T(n) = 2T(\frac{n}{2}) + \frac{n}{\log_2n}$ is $O(n\log_2\log_2n)$, where $T(1) = Θ(1)$. I tried to form the Induction Hypothesis but didn't succeed in choosing the right one. Try 1: If we assume $0 ≤ ck\log_2\log_2k,\forall k < n$, must show $T(n) ≤ cn\log_2\log_2n$. $$ T(\frac{n}{2}) ≤ c(\frac{n}{2})\log_...
I have always though that NP consists of problems solved in a non polynomial time by a deterministic Turing machine. Recently I discovered that NP classifies all the problems solved by a non deterministic Turing machine in polynomial time. Do those 2 machines solve the same problems? Meaning, can a deterministic Turing...
I've been self-studying the book Algorithms by Papadimitriou, Dasgupta and Vazirani. I am having a hard time with a question about local search involving the traveling salesman problem (TSP). We'll say a local search algorithm is exact if it always returns a globally optimal solution. Consider a local search algorithm ...
I'm interested in software verification and therefore only interested in algorithms which always terminate in predictable amount of time and can determine whether the final result is expected or not, hence I think the computable functions are a good place to start as as I understand it these are functions which can be ...
I would like to define a pseudo-boolean function $f$ such that $f(x) = 0$ for all logically valid combinations of $x\in{0,1}$ and $f(x) > 0$ for all logically invalid combinations of $x\in{0,1}$. Suppose I have the following constraint where $x_i \in {0,1}$: $x_1 + x_2 + x_3 \leq 2$ $x_1$ $x_2$ $x_3$ Valid 0 0 ...
I am an 2nd year undergraduate student, majoring in Mathematics. I am interested in computer science as a whole. Are there any journals/magazines which might be accessible to read, so as to get a better flavour of the field ? (besides the assignments and tests that already are part of general coursework).
How can you solve the recurrence $$3T(n) = T(n/3)+ \sqrt{\log n}$$ using the master theorem? I am lost in this question.
I am new to machine learning but had a question about a labeling method. If I had the following two images: Is there a way to use the second image as the label for the first one (i.e. anything in white is the object I want to detect)? As I understand it, labels are typically defined by vector points, but in my case, ...
I am trying to use the Thompson's method to draw an NFA for a RegEx given by: $(a+b|c?)c$ I am wondering if I should deconstruct the RegEx as - Concatenation of $a+$, $(b|c?)$ together with $c$ OR Union of $a$ and $(b|c?)$ concatenated with $c$ In either case, I would the need the atomic NFA construction for the $c?$...
Im new at CS and would like to gather preliminary information to approach an interactive art project. I want to construct a grid of videos - think about a matrix M = m x n where Mi,j is a video that cover a certain portion of the screen. I want to interact with the screen, so that if I trigger a certain action, the vid...
I came across factorial semantics using lambda calculus: $$fact = \lambda n. if(iszero~n) (1) (mult~n(fact(pred~n)))$$ I am not sure why the above does not make sense. Why we just can not keep substituting $fact $ please? Other semanticss of $if, iszero, mult, pred$ are defined as follows: $$ \begin{align*} if = (\lamb...
I've been self-studying the book Algorithms by Papadimitriou, Dasgupta and Vazirani. I am having a hard time with a question about local search involving the traveling salesman problem (TSP). We'll say a local search algorithm is exact if it always returns a globally optimal solution. Consider a local search algorithm ...
I am able to implement the default uniform cost search (python) to find the shortest path between two nodes (path cost). I followed this pseudocode: Now, I want to calculate the shortest path with fuel constraint. Each edge in the graph is associated with a pair of values (, ) where denotes the distance and denotes ...
I'm going through the problems of the Brute Force chapter from Introduction to Analysis and Design of Algorithms by A.Levitin. One problem solution caught my eye, though. The problem states as follows: A firm wants to determine the highest floor of its n-story headquarters from which a gadget can fall without breaking...
I would like a reading list of math and formal logic books which give a principled discussion of missing values. Textbooks on mathematics and formal logic - propositional and first-order and higher-order - are very clear and helpful. Different programming languages make their own choices about how to handle missing val...
I am currently learning about the concept of Turing Machines and trying to relate it with my knowledge on the application of the Binary Search algorithm. The problem I am working on is to write an algorithm that can find an unknown natural number between two given natural numbers by guessing. A solution would look like...
Preface Hello! I have a problem here that's difficult for me to Google, and I don't know if there's a name for it. It feels like a set cover problem of some kind, but I'm very unfamiliar with combinatorics and I don't know all the right words that could apply here. I'll do my best to describe it below. (The actual appl...
coming from the computing science side rather than from the data analysis one, I studied the k-means clustering problem for a short time and noticed that the NP-hardness of the problem for $k=2$ seems to be separately proved in various places (publications as well as some online PDFs). For instance, the article NP-hard...
I'm looking for the name of a certain circuit complexity class. It captures, to me, the idea of "shallow physically feasible circuits". I'm looking for the class of problems with: Constant depth Polynomial size Any bounded fan-in gates (at least NOT and AND, which of course suffices for anything else) Some reasonable ...
A family of sets $F = \{S_1, \dots, S_n\}$ on the ground set $S$ is laminar, if for every $1\leq i < j \leq n$, either $S_i \subsetneq S_j$ or $S_j \subsetneq S_i$ or $S_i \cap S_j = \varnothing$ and also for every $1 \leq i \leq n: \varnothing \neq S_i \subseteq S$. The question is given a family of sets $F = \{S_1, \...
Suppose I start with a directed chain graph of length $n$: And then I add $k$ edges, with a restriction that the result is a planar DAG: Is there a name for this graph family?
Given a set of subsets $S_1, ..., S_N$ of a finite universe $E$ of elements $e_1, ..., e_n$ and mapping of those elements to an integer 'weight' $w_1, ... w_n$, select the subset of subsets which maximizes the total contained weight. The empty set has a combined weight of zero. Note: many weights are negative and the s...
Suppose we have the grammar $$S \to aA | BA $$ $$A \to a | bB | \epsilon $$ $$ B \to cB | d$$ I know that I need to write four different functions in order to parse this grammar. They are parse_input(), parse_S(), parse_A(), and parse_B() However, I am having trouble coming up with a parser for this short grammar. Does...
I am looking for a preferably modern book on graph transformation algorithms. I am really interested into general approaches not on mathematical proofs and rigor notations. The easier the read, the better is the book.
Given a 3-SAT instance. How do we convert it into: 1 in 4 SAT instance. 2 in 4 SAT instance. each case minimizing the [number of new variables - number of new clauses] difference? Note: We are not adding any dummy clauses i.e. ones whose addition or removal doesn't affect the solution space of the problem to the SAT i...
In some abstract programming languages there is a concept "setter and getter". Generalizing, should this be the opposite, i.e. "Getter and setter"? I would theorize that one should first get something --- only then set it.
I have satisfiable 3SAT formula like: (x1 or x2 or x3) and (not x1 or x2 or not x3) and some clause which is not in this formula (not x1 or x2 or x3). Are there any methods to find out if this clause will turn formula in unsatisfiable state? Without obviously appending them and solving new formula. Or maybe some method...
Problem: Given a directed graph $A$, produce an undirected graph $B$ with the same vertices and minimum number of edges satisfying the following constraint: For each vertex in $A$, at least one outgoing edge must be replaced by an undirected edge in $B$. If an edge in $A$ is bidirectional, then it can be replaced by a...
I am trying to understand the semantics for stack algebra and queue algebra as introduced in section 8.5, "Specification Algebras" of textbook Software Engineering 1, Abstraction and Modelling, Dines Bjørner, 1st ed. Queue Algebra is given as: $\textbf{hide}$ $\hspace{1em}dq, rq\ \ \textbf{in}$ $\textbf{class}$ $\hspac...
Motivation In a particular board game, players start the game with a country and a special ability. Two players cannot have the same country or the same special ability. Analysis has shown that certain country-ability combinations are better than others. The combinations have been evaluated with an integer where higher...
We know an valid IPv4 address is each part not greater than 255, so, will 256.256.256.256 be considered a valid hostname rather an IP address? I'm just curious how devices in various parts of the internet treat this kind of hostname?
I understand that there are three types of programming languages: Machine languages Assembly languages high-level languages And that: Machine languages have no abstraction Assembly language have little abstraction High-level languages have much abstraction (data types being the difference maker?) Is there a standa...
I am studying hill climbing algorithm and this topic seems so confusing. What is ridge basically? Can you show an example while searching using hill climbing when ridge occurs? I have researched in internet about this topic but it only left me with more confusions. It seems like ridge seems very similar to local ma...
I've just started to study Formal Languages and Automata and my professor assigned me the following exercise to practice: Determine the production rules that satisfies the Language: L = {ww | w ∈ {0, 1}*} And I can't figure it out... Apparently it's a CSL. Can anyone determine these production rules?
If an algorithm takes two numbers $b$ and $n$ and its input size satisfies $O(\log_2{n} + \log_2{b})$ plus its time complexity satisfies $O(b \log_{2}{n})$, what is the time complexity relative to the input size? Can we say it is exponential? An algorithm is said to be exponential time, if $T(n)$ is upper bounded by $...
From Wikipedia: "Each phase increases the length of the shortest augmenting path by at least one: the phase finds a maximal set of augmenting paths of the given length, so any remaining augmenting path must be longer. Therefore, once the initial ${\displaystyle {\sqrt {|V|}}}$ phases of the algorithm are complete, the ...
So I'm following this article and they use the following algorithm to find the min-cut. Algorithm: Run Ford-Fulkerson algorithm and consider the final residual graph. Find the set of vertices that are reachable from the source in the residual graph. All edges which are from a reachable vertex to non-reachable vertex...
I need to show that for any binary optimal code for $n$-letter source the following inequality holds: $$\sum_{i=1}^n l_i \leq 0.5(n + 2)(n −1).$$ By $l_i$ denoted the length of the sequence corresponding to the letter $i$. I know the bound for the average codelength $L_* \leq H(X)$. But how to apply it? Also I know the...
Aaronson mentions in here that: Recall that $\mathsf{PP}$ is the class of problems like the following: Given a sum of exponentially many real numbers, each of which can be evaluated in polynomial time, is the sum positive or negative (promised that one of these is the case)? I simply do not see why this problem is $\...
Consider the example shown in the above figure. Let's consider two orders (1) S, A, B and (2) S, B, A for traversing the graph and updating the distance d (numbers in circle are distance d): 1- start with S -> B = -2, A = 5; Then A -> D = 7; Then B -> A = -1. Algorithm terminates. 2- start with S -> B = -2, A = 5; The...
I was reading [1] about verifying neural networks. $n_{i,r}$ refers to the rth neuron in layer i and all neurons have the ReLU activation function. A neuron $n_{i,r}$ is said to be strictly active if its pre-activation output is always greater than or equal to zero. Similarly, $n_{i,r}$ is said to be strictly inactive ...
Prove that for every regular language $L$, the following language is regular: $L_{pf}=$ $\{x \in L | $ no proper prefix of $x$ is in $L\}$ How should I prove this? I understood that $L_{pf}$ is just subset of $L$ and the words inside it are special such that no word is the prefix of other one, is this right ? it's not ...
For $x,y \in \{0,1\}^*$ a language $L ⊆ \{0, 1\}^*$ is called substring closed, if $y \in L$ and $x \preceq y$ ($x$ substring of $y$) implies $x \in L$. I want to prove that every substring closed language $L ⊆ \{0, 1\}^*$ is regular. Is it enough to have a $L$ such that just $x$ in it, then prove that $L$ is regular?
I was very confused how to solve the problem when there are two levels of cache, My doubt is how does we quantify the performance when there are two caches. Consider a problem like this Cache L1 access time of main memory = T1 and miss rate = X%. Cache L2 access time of main memory = T2 and miss rate = Y%. CPI of proce...
what is the fastest algorithm to compute the gradient of the Gaussian blur of a (grayscale) image, with a blur radius of around 100 pixels, where smoothness of the result is important to me, i.e. no edges or discontinuities? I run the code on the GPU, if that makes any difference. What I'm currently doing, is the fol...
I am working on a object detection system for autonomous driving. I have tried it in controlled environments. I would like to try it on videos taken from a camera in front of a car running on a highway. I have seen some of those on a course I took a year ago. My question is directed to DL practitioners. Where can I fin...
When a runtime error occurs with a program in language likes C or C++ using GCC/G++, it just crashes the process. When it occurs with a program in language like Rust or Golang, a detailed error message will be given.
How to prove the inequality of concatenating two languages? $|AB|\leq |A| \cdot |B|$ I know that: Let $A,B \subseteq \Sigma^*$ and the concatenating of $A,B$ will as following: $AB=\{wx \mid w \in A, x \in B \}$. Hence by definition $\forall x \in w$ will be concatenating with every word in $B$ and vice versa, and if n...
I am trying to solve the recurrence $T\left(n\right)\:=\:3T\left(n-1\right)\:+\:3n^2$ I tried method I saw but I do not fully understand which looks like: $T\left(n-1\right)\:=\:3T\left(n-2\right)\:+\:3\left(n-1\right)^2$ $T\left(n\right)\:=\:3\left[3T\left(n-2\right)\:+\:3\left(n-1\right)^2\right]\:+\:3n^2$ $T\left(n\...
Ciobaca: From Small-Step Semantics to Big-Step Semantics, Automatically describes how to go from small-step to big-step semantics. I need to do the other way around: from big-step to small-step. Is there literature for this? What should I be careful of? EXTENSION: I have a big-step operational semantics for a functiona...
When it comes to optimizing objective functions belonging to Statistical and Machine Learning Models, there seems to be a general rule: High dimensional objective functions with many parameters are "computationally expensive" to optimize As such, there tends to be two general types of algorithms that are used to opti...
Is correct to use ~α as rule to prove KB╞ α? Is possible to unify sentence ~V(x,y) v S(x) with V(N,W)? ~V(x,y) v S(x) ~V(x,y) v S(y) ~S(x) v ~S(y) v U(x,y) V(N,W) ~U(N,W) α = S(P)