« first day (10 days earlier)      last day (4446 days later) » 

12:13 AM
1
Q: termination of two concurrent threads with shared variables

GillesWe're in a shared memory concurrency model where all reads and writes to integer variables are atomic. do: $S_1$ in parallel with: $S_2$   means to execute $S_1$ and $S_2$ in separate threads, concurrently. atomically: $S$   means to execute $S$ atomically, i.e. all other threads ...

 
12:50 AM
and here's a message passing question for balance
this one's original, in the sense I didn't copy it from a book
@ComputerScience should I post the original exercise, which is easier?
 
1:07 AM
0
Q: CCS process for a drink dispenser with two different prices

GillesA drink dispenser requires the user to insert a coin ($\bar c$), then press one of three buttons: $\bar d_{\text{tea}}$ requests a cup of tea $e_{\text{tea}}$, ditto for coffee, and $\bar r$ requests a refund. This dispenser can be modeled by the following CCS process: $$ M \stackrel{\mathrm{def...

 
@ComputerScience Hmm, my CCS model is buggy, isn't it?
I'm going to sleep on it
 
 
5 hours later…
6:13 AM
1
Q: Ray Tracing versus pixel-based rendering ?

SureshIntro graphics courses usually have a project that asks you to build a ray tracer to render a scene. Many graphics students entering grad school say that they want to work on ray tracing. And yet it seems that ray tracing is a dead field in venues like SIGGRAPH etc. Is ray tracing really the be...

 
6:40 AM
1
Q: Why are there so many programming languages ?

SureshI'm pretty fluent in C/C++, and can make my way around the various scripting languages (awk/sed/perl). I've started using python a lot more because it combines some of the nifty aspects of C++ with the scripting capabilities of awk/sed/perl. But why are there so many different programming langua...

 
6:52 AM
@jonsca let's take our discussion on your answer here
 
7:07 AM
0
Q: List of intro TCS books for those who don't know much about TCS

Ken LiIf you have to recommend books for someone who wants to learn more about TCS at the introductory level such as automata theory, algorithmics, complexity theory, etc, what book(s) would you recommend for those who are interested and want to learn more about TCS, but not had any exposure to it?

0
Q: Why do neural networks seem to perform better with restrictions placed on their topology?

Artem KaznatcheevFully connected (at least layer to layer with more than 2 hidden layers) backprop networks are universal learners. Unfortunately, they are often slow to learn and tend to over-fit or have awkward generalizations. From fooling around with these networks, I have observed that prunning some of the...

 
 
2 hours later…
9:31 AM
@Gilles Good question. I kind of glossed over that. I don't think anything is possible; you can no longer tell where to cut.
 
 
3 hours later…
12:07 PM
0
Q: Our first list question

RaphaelWe got our first list question. In the light of this discussion, this is what I want to do: Ask users to propose only one book per answer. Create one CW answer per field (algorithms, mathematical foundations, logics, languages & automata). Incorporate all answers with score at least five an...

 
1:04 PM
0
Q: Questions like "what are practical applications of X"

malexmaveAre Questions like "(Where) will I ever need Automaton-Theory / P/NP / ... after I finished my studies?" okay? They are kind of meta-y, but somewhat related to CS and I have no idea where you would ask these questions if not here. Example Questions would be: Where will I need P/NP-theory after...

 
1:31 PM
0
Q: "Interview-Questions" Tag

malexmaveWe had at least one interview question on the site already. This is not a proposal to ban them or anything like that, but I think a tag like interview-question would be beneficial for everyone: The Question might get more attention, since it's always good to see what questions might be asked in...

 
@Raphael is there an O(n) algorithm, by the way? I haven't thought hard about this or done a literature search
 
@Gilles: I tough I had made a suggested edit (to add "process-algebras" tag to your css question), but it does not appear anywhere in my activities lists.
 
@Gilles For the tree-encoding thing?
 
@Raphael yes
same topic as the message I was replying to
@StéphaneGimenez I don't see it either. Why would you have suggested an edit for that? You have enough reputation to retag
I've added that tag, we'll see if it sticks
 
1:49 PM
Ok I don't know what happened then…
Maybe a bug with a too long commit message? (I remember it was very long)
 
@Raphael “Please consider choosing a more recognisable username.” WTF? A user's name is their own business, as long as they aren't trying to impersonate someone
 
@Gilles `user
@Gilles user\d+is the default username the system gives you.
@Gilles I think the phrasing "Please consider..." is weak enough to make clear it is only a friendly suggestion.
 
@Raphael oh, I see. There must have been a temporary account association bug or something. Check out his account on other sites...
I wonder why he didn't put his full name here
 
@Gilles I don't care if they stick to this name but I think they will probably not be able to participate as a person.
dunno
Oh,it's Peter S. now. Removing the comment.
Regarding the tree algorithm: don't know. I think your solution is basically n log n even without preprocessing.
 
2:14 PM
So, I got tea, chocolate and TAoCP. Time to answer the hashing question!
 
2:28 PM
1
Q: Similarities and differences in major process algebras

Dave ClarkeTo my knowledge, there are three major process algebras that have inspired a vast range of research into formal models of concurrency. These are: CCS and $\pi$-calculus both by Robin Milner CSP by Tony Hoare and ACP by Jan Bergstra and Jan Willem Klop All three seem to have to this day a quit...

 
 
1 hour later…
3:56 PM
0
A: (When) is hash table lookup O(1)?

RaphaelThis answer summarises parts of TAoCP Vol 3, Ch 6.4. Assume we have a set of values $V$, $n$ of which we want to store in an array $A$ of size $m$. We employ a hash function $h : V \to [0..M)$; typically, $M \ll |V|$. We call $\alpha = \frac{n}{m}$ the load factor of $A$. Here, we will assume th...

@Gilles is this more like what you were looking for?
 
 
2 hours later…
5:44 PM
0
Q: How is the key in a private key encryption protocol exchanged?

JeroenWindows NT used a point-to-point protocol where a client can communicate "securely" with a server by using a stream cipher to encrypt an array of messages with some key $k$. The server also encrypts its response with the same key $k$. But how is it aware of this key? More general: if Alice and B...

 
6:41 PM
0
Q: Decision problems vs "real" problems

Ran G.(inspired by the second bullet in this question) I read in many places that some problems are difficult to approximate (it is NP-hard to approximate them). But approximation is not a decision problem: the answer is a real number and not Yes or No. Also for each desired approximation factor, th...

 
 
2 hours later…
8:57 PM
public beta! public beta! public beta!
 
@RanG next Tuesday, presumably, since Robert said they were extending the private beta for a week
@Raphael not really, but your answer is interesting
I think I'll change my question to match the answers, and ask a new one
 
@Gilles I saw their announcement. I think that we were paddling during the 3-4 first days. but then came the "kick" and on the 8-9th day we were clear to go.
I feel it starts to be "boring" due to the small number of current users
 
@RanG yes
I think our major problem now is we aren't catering to programmer questions
This is a science site, but it includes applied topics
I expect (or rather, I hope) programmers will come and ask questions
and I fear we'll give answers that don't help them
 
@Gilles but not programming questions. Do you mean algorithmic questions (asked from programming point of view)?
 
@RanG not just algorithmic questions
33
Q: Why is quicksort better than other sorting algorithms in practice?

JanomaIn a standard algorithms course we are taught that quicksort is $O(n \log n)$ on average and $O(n^2)$ in the worst case. At the same time, other sorting algorithms are studied which are $O(n \log n)$ in the worst case (like mergesort and heapsort), and even linear time in the best case (like bubb...

^^^^ an algorithmic question, got some good answers
4
Q: ML functions from polymorphic lists to polymorphic lists

GillesI'm learning programming in ML (OCaml), and earlier I asked about ML functions of type 'a -> 'b. Now I've been experimenting a bit with functions of type 'a list -> 'b list. There are some obvious simple examples: let rec loop l = loop l let return_empty l = [] let rec loop_if_not_empty = ...

^^^^ could be a programmer question or a student question, no good answer
I'm going to answer that one
8
Q: (When) is hash table lookup O(1)?

GillesIt is often said that hash table lookup operates in constant time: you compute the hash value, which gives you an index for an array lookup. Yet this ignores collisions; in the worst case, every item happens to land in the same bucket and the lookup time becomes linear ($\Theta(n)$). Under what ...

^^^^ I didn't get the kind of answers I intended, I think I'll ask a follow-up question
 
9:14 PM
@Gilles Did you mean what conditions on the input distribution should be met, in order to get O(1) ?
 
@RanG yes, more or less
 
@Gilles That is how I understood it originally.
 
some of it is covered by Hash tables versus binary trees, but there's more to be said
@RanG that's how I formulated the question, too
but the answers came from a different perspective from what I expected
As a programmer, my angle is: I have a data source, what performance will a hash table give me?
The answers were from a scientist perspective: I have a techique, what data can I apply it to?
 
@Gilles the question should clarify your point of view...
 
a big part of what's missing is going from the data source to the data
“is the data chosen by an adversary” has to be in there somewhere
 
9:23 PM
a somewhat similar situation happen in my question cs.stackexchange.com/q/210/157
I aimed for a scientific view, but (initially) got a "practical" answers/comments.
 
0
A: Decision problems vs "real" problems that aren't yes-or-no

uliAs you said, there is no decision to make, so new complexity classes and new types of reductions are needed to arrive at a suitable definition of NP-hardness for optimization-problems. One way of doing is to have two new classes NPO and PO that contain optimizations problems and thei mimic of co...

impressive
 
9:56 PM
0
Q: For what kind of data are hash table operations O(1)?

GillesFrom the answers to (When) is hash table lookup O(1)?, I gather that hash tables have $O(1)$ worst-case behavior, at least amortized, when the data satisfies certain statistical conditions, and there are techniques to help make these conditions broad. However, from a programmer's perspective, I ...

^^^^ I asked a new question, please tell me if you (don't) understand what it's asking
 
10:23 PM
1
Q: For what kind of data are hash table operations O(1)?

GillesFrom the answers to (When) is hash table lookup O(1)?, I gather that hash tables have $O(1)$ worst-case behavior, at least amortized, when the data satisfies certain statistical conditions, and there are techniques to help make these conditions broad. However, from a programmer's perspective, I ...

 
10:51 PM
@Gilles It appears that the question I asked was much more complex than I aimed.
 
11:43 PM
@RanG I've edited your answer to show what protocol design guideline was violated, feel free to rollback or edit if you don't like my formulation (in which case I'll leave a comment)
 
@Gilles That's cool. I wanted to add something similar as well, to say that there is no use for Bob to just encrypt whatever some (anauthenticated) party asks him to.
 
@RanG that should be part of your answer to my next question
 
@Gilles Once I succeed to solve it (:
Is it solvable?
 
11:59 PM
@RanG isn't the answer that the first two messages are useless but harmless?
@RanG I don't know, I purposefully didn't think before asking these questions
 

« first day (10 days earlier)      last day (4446 days later) »