computer-science

What good Computer Science Podcasts are out there

I listen to several podcasts about technology like Java,PHP,Linux and then I listen to Software Engineering Radio to help me along with Software Architecture, but I need a good podcast on Computer Science concepts and advances, especially one that will cover algorithms and data structures like Trees and Graphs and its applications. Anyon...

First Year Computer Science Programming Languages

I was reading this article earlier regarding C/C#/PHP being dropped as first languages in Advanced Level (pre-university) Computer Science courses in the UK: http://www.theregister.co.uk/2010/05/12/aqa_c_php/ It also goes on to say: Teachers planning to use Java are warned that many universities are considering dropping it from t...

Generating All Permutations of Character Combinations when # of arrays and length of each array are unknown

Hi everyone, I'm not sure how to ask my question in a succinct way, so I'll start with examples and expand from there. I am working with VBA, but I think this problem is non language specific and would only require a bright mind that can provide a pseudo code framework. Thanks in advance for the help! Example: I have 3 Character Arrays ...

Heap as memory store same as data structure heap?

Possible Duplicate: Why are two different concepts both called heap? Is the heap one uses as a data structure (complete binary tree) in Computer Science the same type of heap used in memory where objects are allocated? ...

Soon to be PhD in Computer Science - Which Path to Follow?

I am going to submit my PhD thesis within the next six months. My PhD is on managing the availabiity of large-scale distributed systems, so I have some experience actually building non-trivial systems (+ I have four years experience working as a programmer). I am now trying to figure out what I should do following the PhD. I enjoy res...

What are the benefits of a classical structure over a prototyple one?

I have only recently started programming significantly, and being completely self-taught, I unfortunately don't have the benefits of a detailed Computer science course. I've been reading a lot about JavaScript lately, and I'm trying to find the benefit in classes over the prototype nature of JavaScript. The question seems to be drawn dow...

The Definition of Regular Languages

Good Day, I have tried, and burned my brain to understand the definition of Regular Languages in Discrete Mathematics and its Applications(Rosen) without reaching the goal of understanding why the definition is like that in this book. On page(789), I am rephrasing the definition: Type 3 grammars are defined as: w1 --> w2 Where w1 is...

How do software events work internally?

Hello! I am a student of Computer Science and have learned many of the basic concepts of what is going on "under the hood" while a computer program is running. But recently I realized that I do not understand how software events work efficiently. In hardware, this is easy: instead of the processor "busy waiting" to see if something hap...

What is the function from which all other functions can be derived?

I seem to remember reading about a function that could be used to make all other functions. Does anyone know what it is? And how could such a function be used? I can't remember where I read it and my google-fu is not strong enough. ...

signal processing for a web programmer

What books would you recommend to a CS undergraduate that did mostly web programming all his life, in order to pick up signal processing ? I am looking for something at a grad level and more geared toward an average (or below average) programmer. ...

"Introduction to Computer Science and Programming" for a beginner.

Hi everyone! Im new here and also new to developing software and programming, and with new I mean 0 experience or schooling for it. As Im currently studying medicine via internet and I use a computer on an average of about 8-9 hours a day, this has lead me to get very interested in programming. I got a link from a fellow Redditor and I ...

P=NP?-Problem: What are the most promising methods?

Hello everybody, I know that P=NP has not been solved up to now, but can anybody tell me something about the following: What are currently the most promising mathematical / computer scientific methods that could be helpful to tackle this problem? Or are there even none such methods known to be potentially helpful up to now? Is there any...

Create a "pairing" from a graph?

This problem smells like there should be an answer in graph theory, but it doesn't exactly match any of the graph theory problems I know. (Note: this is actually a real-world problem, fictionalized for easier reading) Imagine that I have a even-numbered group of Chess players at my house. I have plenty of tables and chess sets for every...

Is it possible to have regexp that matches all valid regular expressions?

Is it possible to detect if a given string is valid regular expression, using just regular expressions? Say I have some strings, that may or may not be a valid regular expressions. I'd like to have a regular expression matches those string that correspond to valid regular expression. Is that possible? Or do I have use some higher level ...

How is the concept of "content negotiation" called outside the HTTP context?

Hello, everyone! What are different terms for "content negotiation" (when not talking about HTTP)? For example: some (remote or local) services, components, modules, are negotiating about which protocol to use and/or which content type to exchange. Service provider About the content: What I am very good at, is providing apples. I a...

What should compsci majors do over the summer?

I'm a freshman going to be a sophomore in college, majoring in Computer Science. What are some things I could be doing (besides chilling - done too much of that) in order to further my career? I have a job, but I also want to do something with all the time I have, in this glorious time of no school called summer. ...

Standard term for a thread I/O reorder buffer?

I have a case where many threads all concurrently generate data that is ultimately written to one long, serial file stream. I need to somehow serialize these writes so that the stream gets written in the right order. ie, I have an input queue of 2048 jobs j0..jn, each of which produces a chunk of data oi. The jobs run in parallel on, s...

Specifying Language for a grammar

Hi All, Is there any specific methodology followed to specify a language for given grammar ?? i.e. Is it necessary to run all the production rules given in a grammar to determine the language it represents? I don't have an example as such since the one I am working on is a homework question. [edit]: adding an example, Describe, in Engl...

Recognizing terminals in a CFG production previously not defined as tokens.

I'm making a generator of LL(1) parsers, my input is a CoCo/R language specification. I've already got a Scanner generator for that input. Suppose I've got the following specification: COMPILER 1 CHARACTERS digit="0123456789". TOKENS number = digit{digit}. decnumber = digit{digit}"."digit{digit}. PRODUCTIONS Expression = Term{"+"...

Why call-by-value evaluation strategy is not Turing complete?

I'm reading an article about different evaluation strategies (I linked article in wiki, but I'm reading another one not in English). And it says that unlike to call-by-name and call-by-need strategies, call-by-value strategy is not Turing complete. Can anybody explain, please, why is it so? If it's possible, add an example pls. ...