Relative Content

Tag Archive for computer-science

Best Traversing Strategy / Logic Help Needed

Background: Here is the scenario, imagine I have a little Robot. I give this robot a Map, and I want him to traverse the map, after doing so, I want the Robot to tell me the shortest possible path on the map. So here is an example of a Map:

Class of problems solvable by sed or stream editors

I’ve came across a question transform this text with sed [sed only]
and it got me wondering what class of problems is solvable by stream editors or programs/computational models with similar constraints.

Could we build a functional computer?

As mush as FP has done, in the end, all our programs are structured.
That is, it doesn’t matter how pure or functional we make a them – they are always translated to assembly,
so what actually runs behind the hoods are instructions, states and loops.
We are kind of emulating FP.

How do kernels work(who is the handler between user input and sets of instruction given)

I have an idea of binary and logic circuits within a computer. I also know how cpu works meaning it takes a instruction-binary along with the inputs of such instruction and reservers the following bytes for those. My problem is that, suppose you press w in a text box, it writes a “w” character; while when you press w in a game, your game character goes forward. what part handled that difference and sends different instruction for the cpu and how did it do it?

Formal definition of “concepts / type system” for parametric types – Where to start?

I would be interested in formally defining (and consequently demonstrating) a “type system” for, well, a type system. More specifically, I would like to explore the idea of what C++ calls concepts for my bachelor’s thesis. How would one go about defining such system (formally) ? It’s basically a meta-language for generic programming I suppose, but all the material I’ve found so far is basically bound to syntax of a specific programming language.

Formal definition of “concepts / type system” for parametric types – Where to start?

I would be interested in formally defining (and consequently demonstrating) a “type system” for, well, a type system. More specifically, I would like to explore the idea of what C++ calls concepts for my bachelor’s thesis. How would one go about defining such system (formally) ? It’s basically a meta-language for generic programming I suppose, but all the material I’ve found so far is basically bound to syntax of a specific programming language.