instruction stringlengths 35 29.1k |
|---|
I am trying to solve a pumping Lemma Problem where $L= \{(a^n)^n ; n\ge 0\}$
I am having a lot of trouble with the pumping lemma and understanding using it with different languages. Here is what I have so far and would appreciate any input on it.
Assume for contradiction that $L$ is a regular language. Since $L$ is in... |
Concorde TSP is a solver for TSP. SAT solvers are solvers for boolean satisfiability. TSP and SAT are NP-complete.
Hence, why spent the time to develop Concorde TSP when there is an abundance of SAT solvers in the market back then?
|
Given a truth table for a truth function that takes n inputs and produces a single output (true or false), what is the fastest way to find the simplest combination of logic gates that will output the given truth table?
A few rules for specificity:
Any binary truth function may be used as a logic gate. In other words,... |
I am working on a generalized problem where I am given only schema definition of multiple tables that i have.
Now i have to retrieve certain columns by joining multiple tables such that number of joins are minimized.(i will consider where condition in sql clause later)
Example: Suppose i have 3 tables and here is the l... |
So I have a trie in python but its not leading to the runtime complexity I want from my algorithm to find compound words. I was originally trying to use this algorithm but had no luck https://stackoverflow.com/questions/1291734/finding-dictionary-words
So the words are
['bye','byeen','s','byeens']
# My Trie (*) denotes... |
I am working on modeling a certain system's cache layer and comparing two algorithms.
One outperforms the other one; it shows the higher cache hit rate (%).
But what is important is the impact of such an improvement at cache layer on the entire system performance and on the user experience.
The system performs message ... |
There are other models of computation equivalent to Turing machines in terms of computability.
Turing machines also recognize recursively enumerable languages.
My questions are
Do other models of computation equivalent to Turing machines also recognize the same languages?
Are computability and language recognization ... |
I have an infinite sequence of numbers, starting from 1 and need to find position of begin of some given substring of numbers.
Example:
1234567891011121314151617181920 ...
S = 141
Result: 18
All i think about is convert sequence to string and find substring using Rabin-Karp or KMP. But i feel that i can use it as numb... |
The definition of the variable
< number>::=< digit > | < digit >< number >
where < digit > is defined as
< digit > ::= 1|2|3|4|5
Apparently reflects the following syntax diagram
Please explain why this is the case. I am particularly confused with the clause after the vertical OR line (i.e. < digit >< number >) and ... |
From Ullman and Hopcroft's Introduction to automata theory, languages, and computation 1ed 1979
Consider the off-line Turing machine M of Fig. 12.1. M has a read-only
input tape with endmarkers and k semi-infinite storage tapes. If for
every input word of length n, M scans at most S(n) cells on any
storage tape... |
L = { < M > | M is a turing machine and }
Obviously, the language which L(M) is polynomially reducible to, is context free and hence recursive, so it is a decidable language .
Now, L(M) is reducible to decidable language.
I think this language is not decidable, as this language is non-trivial in the sense of rice the... |
I would like to find the convex polytope with the smallest volume that envelops (contains) all the points of a given 3D point cloud and that can be constructed from only $k$ planes. This is similar to the convex hull problem, except that the convex hull can have an arbitrary large number of faces (limited only by $n$, ... |
Suppose I have a regular language $B$ and a regular language $C$ such that $C \subseteq B$.
How do I find a regular language $A$ such that $A \cap B = C$, where $A$ is represented by a DFA with as few states as possible?
I don't really know where to start looking for research on this, so even pointers to some work in t... |
Recently, I am reading the book [1]. I am trying to solve the following problem:
1.2 Pigeons and holes. Properly speaking, we should call our representation of Königsberg a multigraph, since some pairs of vertices are connected to each other by more than one edge. A simple graph is one in which there are no multiple e... |
I recently begun working on a genetic algorithm to solve for patterns in data. More specifically, it solves for functions given a sample of ins and outs. So a possible solution would be X+2 = Y. The problem is scoring.
I began by trying to use the distance between the result and the expected result as a way of measurin... |
I've been fumbling around with this problem for the last hour, and I'm incredibly stumped.
Let $A = \{\; 0^ku0^k \mid k ≥ 1 \text{ and }u ∈ Σ^*\;\}$. Show that $A$ is regular.
The language obviously satisfies the Pumping Lemma, but that is not conclusive for regularity. How on earth do I prove that this language is re... |
A programming language can be studied from different aspects: syntax,
semantics, and pragmatics.
Does the expressive power of a programming language belong to the
semantics of a programming language?
What does the expressive power of a programming language include? For example, is its expressive power all about Turing... |
I was wondering, If there is a book about whole operation of a Computer. I mean since the operation of software, programming languages (high and low level) and drivers until the deep physics explanation of the operation of hardware like microprocessors, transistors and the other devices.
Something like since the Bigge... |
Are there typing rules for specific coinductive types such as conat or stream, or even in general the M-types?
|
Consider an equation of the form:
$Ax^2+Bxy+Cy^2+Dx+Ey+F=0$
where A-F are integer coefficients (binary quadratic Diophantine equation). I consider here the most general form, so assume all coefficients are non-zero.
Is there an efficient algorithm which can compute integer solutions for this type of equation?
|
The book "Types and Programming Languages" said System F sub type checking introduce exposure typing rules alongside algorithmic typing and sub-typing rules.
exposure algorithm
X<:T ∈ Γ Γ |- T ⇑ T'
--------------------------- (XA-PROMOTE)
Γ |- X ⇑ T'
T is not a type... |
I've been studying from this book the topic of "Synthesis and optimization of digital circuit". In chapter 3 some theory about programming languages is exposed. I was wondering what's the meaning of this paragraph about the meaning of "imperative semantic"
Languages with an imperative semantics are those where there i... |
I have been asked a very interesting question in preparation for my exam coming up. The question is as follows:
Is $L=\{a^n b^n : n \geq 0\} \cap \{a^*b^*\}$ regular or not?
Assume $L$ is regular. Then, $L^c$ should be regular as well. Thus, $L^c = \{a^n b^n : n \lt 0\} = \{\}$, so if I compliment the compliment, I sho... |
I was going through TM here and encountered a term "Dovetailing".
What is exactly the dovetailing in Turing Machines?
Can anyone mind to provide a good explaination with some examples?
|
I have to come up with the recurrence for the quaternary search algorithm.
My initial thought is $T(n)=4T(\frac{n}{4})+c$ because the algorithm examines all four subproblems, and each is one quarter the size of the entire array. But this can't be right because that yields a complexity of $O(n)$. I looked on Google and... |
I understand theoretically how Shor's algorithm works, but I don't know what specific gates are used (or would be used) to implement it. What would the quantum circuit look like?
|
Say we have an algorithm that takes time $T$ to process a problem of size $n$.
Is $\langle T(n)\rangle $ = $T(\langle n\rangle)$?
|
I'm a non-CS grad student working on an algorithm which would be an alternative to conventional GPS position estimation algorithms. My advisor insists that I must compare the run-time of these algorithms. I understand that simply timing the two algorithms is not a good measure for comparison for several reasons but I'm... |
In the original art gallery problem, there is a non-convex area provided and one has to divide it into regions based on infinite visibility of guards. We assume an unlimited number of guards. However, suppose we only have n number of guards with limited visibility. Then how to divide the area in a balanced way meaning ... |
I am reading Bob Carpenter's note at http://lingpipe.files.wordpress.com/2008/04/lazysgdregression.pdf and William Cohen's note at http://www.cs.cmu.edu/~wcohen/10-605/notes/sgd-notes.pdf.
They described the same technique to lazily decay the regularization component of the weight vector (algorithm 2 in Carpenter's). H... |
Aside from problems such as the halting problem, which aren't computable, are there any useful problems in computer science that can only be solved in time $O(2^{2^n})$, or in time $O((n!)!)$? I've heard of many difficult problems which require O(2^n) algorithms, but none that have required running times worse than tha... |
Why would total comparison of procedures solve the Halting problem?
I've read that if all procedures could be represented syntactical e.g. in Scheme, then they could be compared structurally using the predicate =, and this would in turn solve the Halting problem.
Having read the ordinary proof why the Halting problem... |
I have 3 processes P1,P2,P3 having gantt chart as follows =>
Now, CPU remains idle in 0 - 2 sec and 44 - 47 seconds as I/O is taking place.
Does, this affect throughput as 3 processes can be completed in total 47 sec .
Hence, throughput = 3 / 47 .
Is this correct or am i missing something ?
|
Let $A$ be a sorted array. Suppose that this array is huge and can only be stored in a disk. In the I/O model and algorithms built in this model, every time we access the disk we spend an I/O and we get $B$ elements to the RAM. Since accessing the disk is much more expensive than accessing the main memory, we assume th... |
Using pseudocode, I need to design a parallel algorithm that, when given k keys, a[0], a[1], a[2],... a[k-1] stored in an unsorted array a, would find the second largest key in it.
I'm new to parallel computing, so I know that in terms of sequential programming, we can use bubble sort with two passes. First pass gets ... |
I have a problem that I'm trying to solve as part of a larger algorithm I'm implementing, and I don't know if there's a standard, well-known technique for this or not. Without going into too many details of the larger algorithm, I've managed to boil my problem down to the following mathematical summary:
I have a list o... |
According to Wikipedia, PP is the class of decision problems solvable by a probabilistic Turing machine in polynomial time, with an error probability of less than 1/2 for all instances. If the answer is YES, the algorithm will answer YES with probability more than 1/2. If the answer is NO, the algorithm will answer YES... |
I am learning about preceptrons and my professor noted that z-scores are a commmon pre-processing step to normalizing input variables. Following this, I am having trouble understanding why z-scores are useful when training a preceptron?
My current understanding is that z-scores allows us to calculate the probability o... |
Could any existing ML technique be used, for example, to solve the problem of building a lazy Sieve of Eratosthenes in Haskell? By that, I mean a program that, given a specification (a dependent type inhabited by infinite, ordered lists of prime numbers), builds a program of that type, with the same complexity of the k... |
I am working with a professor to implement an optimization algorithm for determining the maximum and minimum of large (100+ variable) multi-variable expressions (not restricted to polynomials). Part of this process involves picking random values for all variables and then evaluating the expression for near "neighbors" ... |
In the following rule,
$$\dfrac{ \Gamma \vdash t_1 : \forall X.T_{12} }
{ \Gamma \vdash t_1 \ [T_2] : [X \mapsto T_2]T_{12} }
\textsf{ (T-TApp)}$$
whend doing type checking, how do know what is $X$?
Also, type checking will not give you a term which has a form $[X \mapsto T_2]T_{12}$, so how to deal ... |
The fact that PPAD is a subclass of TFNP seems to be taken as evidence that PPAD cannot be shown complete (or hard) for classes of independent interest like NP ∩ coNP. Slightly confusing, it even seems to excuse that it has not yet been shown complete for PPA, in which it is contained and which has complete problems.
A... |
I am studying automata and I was wandering if there is a definition of ε-DFA automaton. Is it feasible to define it?
|
Is integer factorization confirmed to be an NP-complete problem? If not, then if one could transform IF into an equivalent problem which is already proved to be NP-complete, would it mean that IF is itself NP-complete as well? Would such a thing have any practical meaning?
|
I have $N$ songs, $M$ instruments.
Each song requires one or more of the $M$ instruments in order to be played.
My $K-1$ friends and I want to learn to play $K$ different instruments, and we want to pick them such that we maximize the amount of songs we will can play.
How would I efficiently solve this? I'm sure this p... |
Say I have a polynomial in $n$ variables of maximum degree $m$. I define its symmetry group to be the subgroup of the permutation group which fixes the polynomial when it acts on the variables. Example: $x^2+y^2+z$ has the subgroup $\langle(x,y)\rangle$. Given such a polynomial, what is the best way to find such a poly... |
I have two poly-lines. I would like to find segments of these lines where the minimum distance between them is higher (or lower) than some threshold.
I.e. I want to find the parts of the lines highlighted in squiggly pink here:
My best attempt is to split each line into some equally sized segments, and then use dyna... |
I'm trying to understand the algorithm described in "Degree constrained minimum spanning tree problem: a learning automata approach" (Javad Akbari Torkestani, The Journal of Supercomputing; April 2013, Volume 64, Issue 1, pp 226–249).
Given a undirected graph $G = (V, E)$, a weight function $w: E \rightarrow R$ and a v... |
Is there a difference between a loop and a natural loop? Natural loops are defined as having a back edge to a head block that dominates it. If you have a natural loop nested inside of another natural loop, does this mean the actual loop is the merging of these two natural loops?
I'm curious to know if there's an agre... |
I read that Babbage analytic engine is Turing complete. I wonder, how could I sort array of numbers on it? Imagine that I have numbers in storage and I want to sort them. How can I do that? The biggest problem is, in my opinion, the fact that analytic engine does not have a card which fetches a number into ingress colu... |
I am confused on several areas of this. First, this is so obvious I am finding it hard to prove. Second, what are some definitions, axioms, or lemmas of an ll(k) grammar that I can use to build up a contropositive argument that for any ambiguous grammar it cannot be an LL(k) for any k? I've found this to be my best app... |
When we perform average case analysis of algorithms, we assume that the inputs to the algorithm are sampled uniformly from some underlying space. For example, the average case analysis of quicksort assumes that the unsorted array is uniformly sampled from the $n!$ permutations of $\{1,\ldots,n\}$.
Suppose instead th... |
$$S\rightarrow aAB$$
$$A\rightarrow bBb$$
$$B\rightarrow A|\epsilon$$
I'm choosing the string abbbb.
First left most derivation is the following:
$$S\Rightarrow aAB\Rightarrow abBbB\Rightarrow abebB\Rightarrow abebA\Rightarrow abebbBb\Rightarrow abebbeb = abbbb$$
Second left most derivation is the following:
$$S\Righta... |
Why are these two architectures incompatible?
|
I'm trying to sort out in my mind the different ways of assigning semantics to a programming language. There are two main methodologies: operational semantics and denotational semantics (I asked a previous question on the relationship between the two).
It seems to me that an operational semantics is the same as definin... |
I teach a randomized algorithms course, and many of the cool applications are to streaming computation. I can have students implement these algorithms in Python or C++, but I feel it would be much cooler to have them do it in a streaming environment. Unfortunately, as far as I can tell, IBM Streams and Google's BigQuer... |
is this formula valid ??, if it is not what interpretation could i use ?
(∀ x: P(x) -> ∀ x: Q(x)) -> ∀ x: (P(x) -> Q(x)).
PS : i know that the other implication is valid.
|
I'm researching the topic of succinct tree representations right now and came across this presentation. On slide 17 there is an example of heap-like notation of a BST (using BFT bit-vectors) and the author claims that the amount of bits needed to represent a tree of $n$ elements (without their values) is exactly $2n+1$... |
Since parity game solving is in TFNP ("Total Function Nondeterministic Polynomial") (and the decision version is is NP ∩ coNP), I wonder whether it is contained in PLS ("Polynomial Local Search") or PPA ("Polynomial Parity Argument")? Add PPP ("Polynomial Pigeonhole Principle") if you want, even so this would probably ... |
I am a university level student of Computer Science having a great passion to study Mathematics. I have a firm belief that Computer Science or Theoretical Computer Science is a direct branch of Mathematics and Logic and also of the opinion that a Computer Science degree has always to be Math oriented as a matter of fac... |
Setting:
regular expressions with backreferences
unary language (1-symbol alphabet)
Is the following problem decidable in this setting:
Given a regular expression with backreferences, does it define a regular language?
For example, (aa+)\1 defines a regular language, while (aa+)\1+ doesn't. Can we decide which one ... |
I am unsure how to calculate what happens when you put a superposition as the control qubit into a cNOT gate or what happens when you put a superposition as the target qubit into a cNOT gate. I know what matrix represents the cNOT and I know that each superposition would be represented by $\alpha |00\rangle + \beta|01... |
I'm in a data structures course, but our current unit discusses recursion and not data structures, and I need to implement breadth-first recursion for the purpose of finding the shortest path through a maze. Is there a way to do this just using the basic structure of recursive calls and base cases? Or will I need data ... |
Is there any difference between expected polynomial time and randomized polynomial time algorithm?
|
I want to know if I want to draw up a finite state machine, say for example binary strings and I want a finite state machine that accepts only one kind of binary string e.g: 0110. Do I, for each state have to account for another symbol of the binary language being read during transition. Like for the first transition, ... |
I'm confused in trying to solve the following problem:
Find the number of comparisons made by Horspool's string search algorithm in the following case:
String: 001001001001
Pattern: 111
Attempt 1
The shift table value for 0 as per the algorithm should be 3 i.e. length of the pattern, because 0 is not part of the patter... |
Consider terms built from elements of $\mathbb Q$ and the operations $+,\times,-,/$, and $\sqrt[n]{\,\cdot\,}$ for each natural number $n$. Given the promise that two terms are well-formed -- that is, there is no division by zero, and no even roots of negative numbers -- is there an algorithm which decides when the two... |
I need to find whether this language is context-free or not:
{u#v | u,v belong to {a,b,c}* and u is a substring of v}, over alphabet {a,b,c,#}
I suspect that it's not, and am trying to approach it via Pumping Lemma, but then I noticed that: any examples like a^n#a^n will not work, cos we can always make vwx in the sec... |
Datalog is not Turing complete. It does however have the wonderful property of not being order sensitive. What problems can be solved in Datalog? Where does it fit in the Chomsky hierarchy, i.e. what abstract machine does it model?
|
Is there a rule that either every DFA contains or not, a loop(cycle in graph terminology)?
I do not seem to be able to generalize this idea in either direction.
Also if either of these is true, can we assume through DFA - NFA equivalence that the same is true for NFAs?
|
I am building a genetic algorithm to solve a "classroom map" problem. The goal is to place correctly students depending on several factors (shortsighted students, turbulent students...).
Here, the genomes is the classroom layout, each classroom has a fixed blackboard and tables positions, what varies is the position of... |
Problem:
Propose a plan (pre- and post-condition, invariant, dimension function) for searching a value in a 3D-array.
Solution:
This is the first solution I've foreseen:
$[\text{Ctx}\ C: m\geqslant 0\wedge\ n\geqslant0\ \wedge\ p\geqslant0\ \wedge\ b[0..n-1,0..m-1,0..p-1]$
$\{\text{Pre}\ Q: T\}$
$\{\text{Inv}\ P: 0\leq... |
More generally, how those translating softwares, for example, an assembler, like nasm, know how to transform in machine code the number "10", from this command: add marks, 10.
I know there is other things that needs to be comprehended about compilers, but I can't find some intuitive explications, like the addition of t... |
I was trying to implement a stack-based Virtual Machine (e.g. like JVM or some early version of Lua) for some benchmarks in order to test its performance against a Register-based VM.
I originally implemented it as having a global stack for all values and an array of instructions, where for the sake of simplicity, no fu... |
In my Artificial Intelligence class, in a section on Uninformed Search Algorithms, the textbook for the class (and as was discussed in lecture) the running time for Breadth First Search is listed as being: $O(b^{d+1})$ with the following explanation:
Normally (or at least in my experience thus far in Algorithms) I've ... |
I had used an existential quantifier within an implication, as below:
$$\exists ~ \sigma_{opt}~~~ \wedge~~~ n \in R^{+}~ ,~0<n<1 \rightarrow ~~ \sigma_{opt} = n$$
I've, recently, found that it is illegal to do that and just universal quantifier could be used in this situation. Could anybody explain the reason?
|
Picture
procedure MatchExistsA
for i = 2 to n
for j = 1 to i-1
if a_j = a_i then return true
return false
procedure MatchExistsB
BubbleSort(list)
for i = 1 to n-1
if a_i == a_i+1 then return true
return false
I calculated the worst-case running time of each algorithm using Θ notation, an... |
I am studying how Floyd-Warshall works and came across this doubt.
In the code:
for(int k = 0; k < V; k++)
for(int i = 0; i < V; i++)
for(int j = 0; j < V; j++)
Matrix[i][j] = min(Matrix[i][j], Matrix[i][k] + Matrix[k][j]);
I can see I can not change order of k because it is the intermediate ve... |
We have two production lines - product and container (two integer arrays product_list[N] and container_list[M]).
If the volume of a container is equal or larger than that of a product, then we could put the product into that container.
We want to put as many products into containers as possible.
We can pick any initial... |
I am required to write a factorial function in ARM assembly language that takes an integer $ n $ as input and returns the value of $ n! $. However, I can only use the $ 4 $ basic arithmetic operations $ + - * / $ (so no if-else or loop or recursion). Can anyone suggest a hint to do that? I can only do if I am allowed t... |
Which of the choices displayed is not a possible order in which Depth-First search could mark the vertices of the graph displayed as visited ?
|
I believe that they can't, but I couldn't find any existing framework for parsing expression grammars akin to the pumping lemma that would allow me to prove it.
The language I'm talking about is
$$\{ww\mid w\in\{a, b\}^*\} $$
Can you help me prove it, or find a PEG grammar that parses the language?
|
Can someone explain me how do I execute sum query from Index 0 to Index I given the binary value of that Index I. There are some trivial question that I want to know :
Do we have to remove last set bit and all the bits following it.
How many times do I have to access the temporary array made for the data structure i.... |
I am looking at a "practice test" for a Theory of Computation class. It was a test in a previous year.
I am asked to prove that, given L1 and L2 are regular, the union and difference are both regular.
It seems to me that for the union, since all the members of each separate set are regular, and the union consists exac... |
I'm reading Cover's "Elements of Information Theory" and I have a problem with the definition of uniquely decodable code.
A code is said to be singular if there exist two elements that map to
the same string. In other case it is said to be non singular.
Let $C$ be a code. The extension of $C$ is the homomorphism $C... |
I was given this as a homework exercise, yet I don't know whether my solution is sound:
Given a complete binary search tree where blocks are formed in order of the value of the nodes. What would the amount of IOs be to reach any leaf from the root?
I think I can define the amount of IOs recursively as follows:
se... |
I know that a graph G' is a subgraph for G if V(G')⊆V(G) and E(G')⊆E(G).
Today my professor wrote that G' is a subgraph for G if G' is a graph and V(G')⊆V(G), and then he told us that this definition is equivalent to the one we've seen before (= the first line in this post).
However, I don't think that these definition... |
We were asked the following question in our exam:
Solve or bound the recurrence T(n) = 2T(n − 3) for n>3 provided T(1) = T(2) = T(3) = 1.
How do I go about solving this type of recurrence? For a normal recurrence of the form T(n) = 2T(n - 3) + cn, I would have considered cn to be the root and then solved the remaind... |
So, a paper showed up on arXiv: https://arxiv.org/abs/1609.09562
The above states in the abstract that it contains a proof that $NP = PSPACE$
Since $NP \subseteq PH \subseteq PSPACE$, that would mean that $PH$ collapses, right? Well, the paper makes no mention of this and this seems pretty significant because "if $\mat... |
I have a long string that contains data formatted in the following way:
var str = "parent /n /t child /n /t child /n /t /t grandchild /n parent";
If you print this out you get a tree structure like directories. I am trying to figure out a way/algorithm to individually extract every parent and child and children of the... |
If I want to read any websites and get some information as names (or dates) on some part of the site as a human. What solution I could use in order to get these datas using deep learning or machine learning?. Is it possible?.. it is not necessary artificial inteligence? .... or maybe it might be as a part of a Phd thes... |
I have a question about rounding error. I have created a function to approximate exp(x) by summing the terms of its taylor series until the sum stops changing. (That is, 1 + x + x^2/2! ...).
This function works well for seemingly any positive value of x that i have tried, but when i try for instance -30, it does not ... |
I have the following problem.
Let $\Phi$ be an admissible numbering of the single-parameter partially-recursive functions. That is, $\Phi(i, x) = f_i(x)$ with $f_i$ the $i$th partially-recusive function with one parameter. Denote with $f(x)\!\uparrow$ that $f(x)$ is undefined in the sense that its computation does not... |
How would I go about solving this?
|
In Language with $\log \log n$ space complexity?, the following non-regular language is described:
$$L = \{b(0) \# b(1) \# \dots \# b(2^k-1) \mid k\in \mathbb{N}\}$$
where $b(i)$ is the $k$-bit binary representation of $i$. This can evidently be computed in $\log \log n$ space, where $n$ is the length of the string, us... |
I'm plenty familiar with the Halting Problem for Turing Machines. It occurred to me after reading several posts on this site that it would be interesting, educational and useful to start a list of equivalents to the Halting Problem in terms of Computer Security. I think this might help students of computer science and ... |
I have a complete undirected graph with $V$ vertices and $\frac{V(V - 1)}{2}$ edges. Then, I remove $K$ edges $(a_i, b_i)$. I want to know if the graph is still connected after performing all the operations (so I want to delete those edges and then answer the question). Is there any faster way to do this than performin... |
Recently, I am reading the book [1]. I am trying to solve the following problem:
1.3 Proving Euler's claim. Euler didn't actually prove that having vertices with even degree is sufficient for a connected graph to be Eulerian--he simply stated that it is obvious. This lack of rigor was common among 18th century mathema... |
We want to compute the clustering coefficient $C$ for an undirected graph $G = (V, E)$.
The clustering coefficient $C$ for a graph $G$ is the average over all local clustering coefficients $C_i$, whereby $C_i$ is the local clustering coefficient of a vertex $v_i$ such that $i$ is a generic index and $v_i$ is a member o... |
I have a connected undirected graph with V vertices and V(V - 1)/2 edges. Then, I remove K edges (a[i], b[i]). I want to know if the graph is still connected after performing all the operations (so I want to delete those edges and then answer the question). Is there any faster way to do this than performing BFS/DFS alg... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.