Computer Science Weekly Newsletter

Computer Science newsletter

Top new questions this week:

What problem cannot be solved by a short program?

BACKGROUND: Recently I tried to solve a certain difficult problem that gets as input an array of $n$ numbers. For $n=3$, the only solution I could find was to have a different treatment for each of ...

complexity-theory programming-languages kolmogorov-complexity  
asked by Erel Segal Halevi 6 votes
answered by babou 2 votes

Detecting palindromes in binary numbers using a finite state machine

In my first algorithms class we're creating these patterns that are supposed to model a finite state machine. We were given a task to think if we can figure out a way to detect palindromes in binary ...

regular-languages finite-automata  
asked by Jakub Arnold 5 votes
answered by babou 5 votes

Fixed size set to contain the maximum number of given sets

I asked this question in SO here I have about 1000 sets of size <=5 containing numbers 1 to 100. {1}, {4}, {1,3}, {3,5,6}, {4,5,6,7}, {5,25,42,67,100} ... Is it possible to find a set of ...

algorithms np-complete  
asked by albert 4 votes

Determining Number of States in a Turing Machine

I am looking at an example Turing machine in my textbook, Automata and Computability by Dexter C. Kozen, and I'm confused as to how they determine the number of states this particular machine has. ...

turing-machines notation  
asked by tdark 4 votes
answered by babou 5 votes

Does a graph always have a minimum spanning tree that is binary?

I have a graph and I need to find a minimum spanning tree to a given graph. What is to be done so that the output obtained is a binary tree?

graph-theory binary-trees spanning-trees  
asked by Aditya.M 4 votes
answered by Juho 8 votes

Fix two primes p and q. Given input a number of the form $p^aq^b$, find the immediate next number of the same form

As stated in the title: Fix two primes p and q. Given input a number of the form $p^aq^b$, find the immediate next number of the same form. For example: when $p = 2$ and $q = 3$ Next of $2^2*3=12$ is ...

algorithms number-theory  
asked by randomA 4 votes
answered by D.W. 4 votes

Lamport Timestamps: When to Update Counters

In the timepiece (excuse the pun) that is Time, Clocks and the Ordering of Events, Lamport describes the logical clock algorithm as the following: Each process $Pi$ increments $Ci$ between any two ...

distributed-systems synchronization clocks  
asked by George Robinson 3 votes
answered by Peter 0 votes

Greatest hits from previous weeks:

Visual Programming languages

Most of us learned programming using "textual" programming languages like Basic, C/C++, and Java. I believe it is more natural and efficient for humans to think visually. Visual programming allows ...

programming-languages  
asked by Mohammad Al-Turkistany 19 votes
answered by espertus 23 votes

Understanding Peterson’s and Dekker’s algorithms

I am trying to understand the algorithms by Peterson and Dekker which are very similar and display a lot of symmetries. I tried to formulate the algorithms in informal language like follows: ...

concurrency synchronization mutual-exclusion  
asked by gbag 13 votes
answered by Wandering Logic 11 votes

Can you answer these?

Intelligent Agents-Probability and Beliefs

I am reading about probability and beliefs in artificial intelligent agents, and came across the following passage: Why the axioms of probability are reasonable The axioms of probability can be seen ...

artificial-intelligence probability-theory agent-based-computing  
asked by DarioP 1 vote

Using "incremental algorithms" to find the $k^{th}$ smallest number

This is what I vaguely understand of what an "incremental algorithm" is - say one such for calculating the $k^{th}$ smallest number for a given sequence of elements $x_1, x_2,...,x_n$ then after the ...

probability-theory randomized-algorithms randomness probabilistic-algorithms random-number-generator  
asked by guest 1 vote

What's the difference between adaptive control and a kalman filter?

From my basic understanding of Adaptive Control, I understand that it uses the error and the velocity of the error to approximate the error in the solution space of a problem, thus allowing for ...

machine-learning  
asked by Seanny123 3 votes
Subscribe to more Stack Exchange newsletters


Unsubscribe from this newsletter or change your email preferences by visiting your subscriptions page on stackexchange.com.

Questions? Comments? Let us know on our feedback site. If you no longer want to receive mail from Stack Exchange, unsubscribe from all stackexchange.com emails.

Stack Exchange, Inc. 110 William St, 28th Floor, NY NY 10038 <3