Merk er weinig vanquote:Op maandag 21 september 2009 20:47 schreef AirwiN het volgende:
[..]
Vrouwen zijn nooit übersingle. Die hoeven namelijk maar te knippen met hun vingers en dan is er altijd wel een übersingle die zich aanbiedt.
Welkomquote:Op maandag 21 september 2009 20:49 schreef Pandora73 het volgende:
Nou dan maar even zoals beloofd een kort voorstelberichtje he...
Ben vrouw, bijna 36. Ben nu een jaar officieel single, heb onlangs wel geprobeerd een relatie op te bouwen maar dat heeft de afstand en andere praktische bezwaren niet overleefd. En omdat het eigenlijk nooit echt van de grond is gekomen (ondanks oprechte bedoelingen bij beide partijen) tel ik het maar niet als echte relatie.
Foto doe ik niet aan, wegens de niet zo toffe combinatie van werk versus uitgesproken mening hier. En aangezien het geen datingtopic is, ga ik ook mijn maten niet neerzetten.
Dat was het Relatie gedeelte, nu nog de Psychologie: dat vind ik gewoon machtig interessant. Mits het serieus wordt gedaan. Zo ben ik geen voorstander van het plakken van een ADHD-sticker op ieder niet fatsoenlijk opgevoed kind, of op het plakken van het etiket "autist" op ieder muurbloempje. Om maar wat te noemen. En daar ga ik op zich ook graag over in discussie. Maar aangezien een discussie inhoudt dat beide kanten met behulp van valide argumenten gestaafd dienen te worden, en er niet alleen maar Welles-Nietes geroepen wordt, komt dat er niet altijd van.
Zo. Mag ik nu blijven?
* Pandora73 zet puppy-oogjes op
Hondquote:Op maandag 21 september 2009 20:55 schreef rhubarbje het volgende:
[..]
uiteraard mag je blijven!
Maar even voor de volledigheid: wij zjin meer van het hond versus kat, niet zo erg van de relatie en psychologie
Ik ben voorquote:Op maandag 21 september 2009 21:00 schreef Godtje het volgende:
[..]
Nou doe eens gek. We zouden bijvoorbeeld stellingen kunnen introduceren.
quote:Op maandag 21 september 2009 21:01 schreef rhubarbje het volgende:
[..]
Ik vind het allemaal prima
Ik denk dat ik zelfs liever nog wat haar zie dan kaalwant dat is zo onnatuurlijk vind ik
quote:
Het is al jaren ondermaats.quote:Op maandag 21 september 2009 21:25 schreef Plato1980 het volgende:
[..]
Ik vind niet dat het niveau vaak wisselt hoor, volgens mij is het al jaren hetzelfde.
Bijdrages zijn in dit geval een ruim begrip.quote:Op maandag 21 september 2009 21:27 schreef Tegan het volgende:
[..]
Zegt degene die hier de meeste bijdrages levert.
[..]
.
Daar zijn ze ook niet op gemaakt.quote:Op maandag 21 september 2009 21:27 schreef rhubarbje het volgende:
stoot ik er net mee tegen de muur (ook oerstom) weer een kapot
quote:
quote:
Dan verdien je er ook eentje.quote:Op maandag 21 september 2009 21:28 schreef Tegan het volgende:
[..]
Alleen nadat ik extra lange posts succesvol heb voltooid.
Dat valt ook wel mee.quote:Op maandag 21 september 2009 21:27 schreef Tegan het volgende:
[..]
Zegt degene die hier de meeste bijdrages levert.
quote:[..]
.
Hoogpolig tapijt op de vloer en schuimrubber tegen de wanden?quote:Op maandag 21 september 2009 21:27 schreef rhubarbje het volgende:
Godver
Had ik voor mijn verjaardag nieuwe dubbelwandige thee glazen gehad om mn collectie aan te vullen omdat er al zo veel gesneuvelt waren, stoot ik er net mee tegen de muur (ook oerstom) weer een kapot![]()
Nou weet ik ook weer wat ik wil van sinterklaas
Ze hadden zulke glazen bij Cafe Karel, maar toen ik er laatst was kreeg ik weer een gewoon glasquote:Op maandag 21 september 2009 21:27 schreef rhubarbje het volgende:
Godver
Had ik voor mijn verjaardag nieuwe dubbelwandige thee glazen gehad om mn collectie aan te vullen omdat er al zo veel gesneuvelt waren, stoot ik er net mee tegen de muur (ook oerstom) weer een kapot![]()
Nou weet ik ook weer wat ik wil van sinterklaas
En zonder dat je het door hebt ben je met die lange post ook nog met java bezig geweest.quote:Op maandag 21 september 2009 21:28 schreef Tegan het volgende:
[..]
Alleen nadat ik extra lange posts succesvol heb voltooid.
Afhankelijk van de aanwezige users...quote:Op maandag 21 september 2009 21:25 schreef Plato1980 het volgende:
[..]
Ik vind niet dat het niveau vaak wisselt hoor, volgens mij is het al jaren hetzelfde.
dan zullen ze ook wel allemaal overleden zijnquote:Op maandag 21 september 2009 21:29 schreef Tegan het volgende:
[..]
Ze hadden zulke glazen bij Cafe Karel, maar toen ik er laatst was kreeg ik weer een gewoon glas.
En aangezien dat al jarenlang merendeels dezelfde zijn...quote:Op maandag 21 september 2009 21:29 schreef MissMSX het volgende:
[..]
Afhankelijk van de aanwezige users...
Ph.quote:Op maandag 21 september 2009 21:28 schreef Pheno het volgende:
[..]
Hoogpolig tapijt op de vloer en schuimrubber tegen de wanden?
Goed ideequote:Op maandag 21 september 2009 21:28 schreef Pheno het volgende:
[..]
Hoogpolig tapijt op de vloer en schuimrubber tegen de wanden?
Honden > kattenquote:
Den Haag of Utrechtquote:Op maandag 21 september 2009 21:31 schreef Tegan het volgende:
[..]
Goed idee.
[..]
Honden > katten. Sorry.
Mijn nieuwe opdracht is zo bizarquote:Op maandag 21 september 2009 21:29 schreef Godtje het volgende:
[..]
En zonder dat je het door hebt ben je met die lange post ook nog met java bezig geweest.
Je moet een java programma schrijven met opengl ondersteuning?quote:Op maandag 21 september 2009 21:32 schreef Tegan het volgende:
[..]
Mijn nieuwe opdracht is zo bizar.
Het siert je dat jij er zo doorheen prikt. Je stijgt in mijn achting.quote:
Ah, er is niets verandert lees ikquote:Op maandag 21 september 2009 21:32 schreef AirwiN het volgende:
[..]
Het siert je dat jij er zo doorheen prikt. Je stijgt in mijn achting.
Uiteraard niet. Dadelijk voel je je niet meer thuis.quote:
Dit soort taalfouten ben ik niet van je gewend.quote:
Ik snap het niet eensquote:Op maandag 21 september 2009 21:32 schreef Pheno het volgende:
[..]
Je moet een java programma schrijven met opengl ondersteuning?
quote:This program is a continuation of the instruction exercises about cellular automata. See Instruction 3 for these exercises.
The cellular automata we consider in this assignment consist of a row of cells that can be either occupied or empty. The number of cells in the row is specified in the input. The initial configuration is specified in the input by specifying the occupied cells.
Your program has to implement several automata all sharing the following properties.
* only the current generation determines the next one
* the rules define one value for each cell
* the rules are the same for each cell
* the new value of the cell is dependent only on the value of the direct neighbours and the cell itself (this set of three cells is called the neighbourhood of the cell; to have a neighbourhood of three cells everywhere, we assume an always empty cell on the outside of the two cells on the borders of the row).
Your program has to implement the following rule sets. Note that these rule sets are different from the sets in the exercise.
A. 1. if the cell is currently occupied, it remains occupied only if exactly one neighbour is occupied; 2. it the cell is currently empty, it remains empty only if both neighbours are empty.
B. 1. if the cell is currently occupied, it remains occupied only if the right neighbour is empty; 2. it the cell is currently empty, it becomes occupied if exactly one neighbour is occupied.
Remarks
There are extra requirements for computer science students to get higher grades.
Test sets are provided on Monday morning.
Input
1. the letter A or the letter B, signifying the automaton that should be executed;
2. a positive integer L representing the length of the row of cells (not counting the extra border cells you may add in your implementation);
3. a positive number G representing the number of generations that should be displayed, including the initial generation;
4. the word init_start followed by one or more positive integers, followed by the word init_end; the integers designate the position of the cells in the row that are initially occupied; the first cell in the row has position 1. All other cells are initially empty. When an integer is higher than the number of cells L, it should be ignored
5. the word end.
Output
A sequence of G lines (G defined above) representing the succesive generations. The first line is the initial generation, as specified in the input.
Each line consists of L characters, each character represents one cell. An empty cell is displayed as a space, an occupied cell as the character '*'.
Newlines are not significant in the input. In other words, don't use nextLine().
Hints
The input sequence of initially occupied cells is terminated with a word, not an integer. This makes it awkward to input the sequence with nextInt(), since calling nextInt() when a non-numeric word is on input will result in an error. It may be convenient to input the numbers with next() and then transforming the resulting String (let's say s) into an int by Integer.parseInt(s). See Chapter 5 of the Reader.
Example 1
[ output in edition 1 was incorrect, lines too long ]
Input:
A 11 10
init_start 6 init_end
end
Output:
1
2
3
4
5
6
7
8
9
10*
* *
* * *
* * * *
* * * * *
* * * * * *
* * * * *
* * * * * *
* * * * *
* * * * * *
Example 2
Input:
B 61 20
init_start 20 40 init_end
end
Output:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20* *
*** ***
* ** * **
**** ** **** **
* * ** * * **
*** **** ** *** **** **
* * * ** * * * **
****** **** ** ****** **** **
* *** * ** * *** * **
*** * ** **** ** *** * ** **** **
* ** **** * * * ** **** * * **
**** * * ** ****** * * * ** **** **
* * ** ** *** * * ** ** *** * **
*** ** *** *** ** ** * *** *** ** **** **
* * *** * *** ** * * *** * *** * * **
******* ***** * * * * * ***** * * ** **** **
* *** * ******* * ** * * **** *** * **
*** * ** ** * * * ** ** *** ** **** **
* ** **** *** ** ** **** *** ** * *** * * **
**** *** * * ** * * *** * ****** * ** **** **
Advanced
A more advanced version, required for computer science students to get grades above 8, should take the following extra input before the word end.
* A sequence of 8 numbers, either 0 or 1, representing the rules of the automaton. How this works is explained below.
The next state of a cell depends only of the current state of the three neighbourhood cells. There are 8 such state combinations (X means occupied, E, means empty:
1. XXX (all cells are occupied)
2. XXE (right neighbour is empty, others are occupied)
3. XEX (etc.)
4. XEE
5. EXX
6. EXE
7. EEX
8. EEE
The n-th number on input designates whether a cell becomes empty in the next generation (0) or occupied (1) when the current state of the neighbourhood is corresponds to the n-th combination in this list.
Example of a rule set
The input sequence:: 0 1 0 1 1 1 1 0
defines an automaton with the following rules:
1. if the current cell and its neighbours are occupied, the cell becomes empty (first number);
2. if the current cell is empty and both neighbours are occupied or both neighbours are empty, the cell remains empty (third and eighth number);
3. in all other cases the cell remains or becomes occupied.
The letter A or B in the input is ignored in the advanced case
Example
Input:
A 11 5
init_start 5 init_end
1 1 0 1 1 1 1 0
end
Output:
1
2
3
4
5*
***
*****
*******
*********
Ik ben zo ziek als wat, het laatste wat me nu bezighoudt is grammatica en spelling. Ik ben 2 wasmachines vol met zakdoeken verder en ben ze beu. En die zakdoeken mij ookquote:Op maandag 21 september 2009 21:35 schreef Plato1980 het volgende:
[..]
Dit soort taalfouten ben ik niet van je gewend.
Oké, waar moet je NIET willen wonen?quote:Op maandag 21 september 2009 21:25 schreef Plato1980 het volgende:
[..]
Duinoord, Bezuidenhout, Benoordenhout.
Utrecht.quote:Op maandag 21 september 2009 21:38 schreef CherryLips het volgende:
[..]
Oké, waar moet je NIET willen wonen?
Ze mogen mijn tuinman worden. Gratis.quote:Op maandag 21 september 2009 21:33 schreef AirwiN het volgende:
Pheno...![]()
Mede naar aanleiding van je oeverloze geduld in GAM...
Ik ga het morgen even maken. Nu te dizzy om het te lezenquote:
In jouw hoedanigheid als lief, onschuldig, aantrekkelijk, blond meisje zou ik Centrum, Laakkwartier, Moerwijk, Schilderswijk, Duindorp en Transvaal vermijden.quote:Op maandag 21 september 2009 21:38 schreef CherryLips het volgende:
Oké, waar moet je NIET willen wonen?
Kijk maar uit dat ze je tuinpad niet downloaden dan...quote:
Kom je in Den Haag wonenquote:Op maandag 21 september 2009 21:38 schreef CherryLips het volgende:
[..]
Oké, waar moet je NIET willen wonen?
Ik heb trojans bij de hand.quote:Op maandag 21 september 2009 21:40 schreef AirwiN het volgende:
[..]
Kijk maar uit dat ze je tuinpad niet downloaden dan...
| Forum Opties | |
|---|---|
| Forumhop: | |
| Hop naar: | |