Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Corsi A - F > Algoritmi e strutture dati > [Algoritmi] Progetto "CONTROLLO REMOTO"
Pages (25): « First ... « 12 13 14 15 [16] 17 18 19 20 » ... Last »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
LoneWolf
.grande:maestro.

User info:
Registered: Nov 2001
Posts: 883 (0.10 al dì)
Location:
Corso: Informatica
Anno: Boh!
Time Online: 2 Days, 0:35:31 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by andrea
Lonewolf, sei sicuro di poter fare così? Se fai la conversione della stringa in integer, automaticamente limiti il numero di automi al massimo valore dell'integer. O sbaglio?

Avresti ragione tu se utilizzassi la conversione come unico parametro di ordinamento.
Ma se ne utilizzi due come ho scritto qualche post fa, viene tutto fuori ordinato alla perfezione.

__________________
"It is totally natural to die or to be killed, rather than just to live without a certain purpose"

19-01-2005 17:14
Click Here to See the Profile for LoneWolf Click Here to See the Blog of LoneWolf Click here to Send LoneWolf a Private Message Visit LoneWolf's homepage! Find more posts by LoneWolf Add LoneWolf to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
LoneWolf
.grande:maestro.

User info:
Registered: Nov 2001
Posts: 883 (0.10 al dì)
Location:
Corso: Informatica
Anno: Boh!
Time Online: 2 Days, 0:35:31 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Non ricordo a chi avessi detto di trovarci giovedì (oggi, praticamente, visto che la mezzanotte è passata), ma oggi non riesco a venire, mentre sarà in uni venerdì, perché di pomeriggio ho l'FSE di Windows in aula delta.

Ci si vede venerdì.

__________________
"It is totally natural to die or to be killed, rather than just to live without a certain purpose"

19-01-2005 23:47
Click Here to See the Profile for LoneWolf Click Here to See the Blog of LoneWolf Click here to Send LoneWolf a Private Message Visit LoneWolf's homepage! Find more posts by LoneWolf Add LoneWolf to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
joe.satriani
.precettore.

User info:
Registered: Feb 2004
Posts: 90 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 1 Day, 17:28:32 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

l'avevi detto a me, no problema a domani!

20-01-2005 07:55
Click Here to See the Profile for joe.satriani Click Here to See the Blog of joe.satriani Click here to Send joe.satriani a Private Message Find more posts by joe.satriani Add joe.satriani to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Teju
:L'anti - anti-global!!:

User info:
Registered: Dec 2001
Posts: 1394 (0.16 al dì)
Location: Cassina Beach
Corso: Info
Anno: 3° ...circa...
Time Online: 5 Days, 8:26:51 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ma... ma...

Come mai l'istruzione

if (a <= automa_corrente->x <= c)

non funziona, mentre la

if (automa_corrente->x >= a && automa_corrente->x <= c)

funziona?!?

In qualunque linguaggio che uso di solito funzionano entrambe, che il C sia così indietro?!? ...e pensare che ci ho sbattuto la testa per taaaaaanto tempo xkè non trovavo l'errore...

Mah........ :-)

__________________
Teju.it - Una vita da raccontare

20-01-2005 11:11
Click Here to See the Profile for Teju Click Here to See the Blog of Teju Click here to Send Teju a Private Message Visit Teju's homepage! Find more posts by Teju Add Teju to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
andrea
.illuminato.

User info:
Registered: Apr 2003
Posts: 224 (0.03 al dì)
Location: Lissone
Corso: Informatica
Anno: 3
Time Online: 2 Days, 4:53:22 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Scusa Lonewolf, ma non riesco a capire cosa intendi...
Se converti la stringa secondo me la limiti al numero di bit del più grande intero.

20-01-2005 11:23
Click Here to See the Profile for andrea Click here to Send andrea a Private Message Find more posts by andrea Add andrea to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
LoneWolf
.grande:maestro.

User info:
Registered: Nov 2001
Posts: 883 (0.10 al dì)
Location:
Corso: Informatica
Anno: Boh!
Time Online: 2 Days, 0:35:31 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by andrea
Scusa Lonewolf, ma non riesco a capire cosa intendi...
Se converti la stringa secondo me la limiti al numero di bit del più grande intero.


Allora, io prima controllo se due stringhe sono di diversa lunghezza; se sono di pari lunghezza, le trasformo in integer e le ordino.
Per cui, non sto limitando nulla, non esisteranno mai due stringhe di pari lunghezza e valore.

Capito?

__________________
"It is totally natural to die or to be killed, rather than just to live without a certain purpose"

20-01-2005 12:08
Click Here to See the Profile for LoneWolf Click Here to See the Blog of LoneWolf Click here to Send LoneWolf a Private Message Visit LoneWolf's homepage! Find more posts by LoneWolf Add LoneWolf to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
LoneWolf
.grande:maestro.

User info:
Registered: Nov 2001
Posts: 883 (0.10 al dì)
Location:
Corso: Informatica
Anno: Boh!
Time Online: 2 Days, 0:35:31 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Teju
Ma... ma...

Come mai l'istruzione

if (a <= automa_corrente->x <= c)

non funziona, mentre la

if (automa_corrente->x >= a && automa_corrente->x <= c)

funziona?!?

In qualunque linguaggio che uso di solito funzionano entrambe, che il C sia così indietro?!? ...e pensare che ci ho sbattuto la testa per taaaaaanto tempo xkè non trovavo l'errore...

Mah........ :-)

Ma dai, Teo, ti ho detto ieri quale funzione usare, proprio perché aveo provato anche io e funzionava male.
Comunque funziona quella sintassi sugli integer...

__________________
"It is totally natural to die or to be killed, rather than just to live without a certain purpose"

20-01-2005 12:10
Click Here to See the Profile for LoneWolf Click Here to See the Blog of LoneWolf Click here to Send LoneWolf a Private Message Visit LoneWolf's homepage! Find more posts by LoneWolf Add LoneWolf to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Teju
:L'anti - anti-global!!:

User info:
Registered: Dec 2001
Posts: 1394 (0.16 al dì)
Location: Cassina Beach
Corso: Info
Anno: 3° ...circa...
Time Online: 5 Days, 8:26:51 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by LoneWolf
Ma dai, Teo, ti ho detto ieri quale funzione usare, proprio perché aveo provato anche io e funzionava male.

No, ormai per gli inserimenti e i controlli di inserimento ci sono arrivato, la mia era solo una considerazione sul fatto che un'istruzione molto comune in tutti i linguaggi di programmazione quale (a <= b <= c) non restituisca il corretto valore! :D

__________________
Teju.it - Una vita da raccontare

20-01-2005 12:19
Click Here to See the Profile for Teju Click Here to See the Blog of Teju Click here to Send Teju a Private Message Visit Teju's homepage! Find more posts by Teju Add Teju to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
andrea
.illuminato.

User info:
Registered: Apr 2003
Posts: 224 (0.03 al dì)
Location: Lissone
Corso: Informatica
Anno: 3
Time Online: 2 Days, 4:53:22 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Quando parlo di limitare intendo dire che se trasformi una stringa in un integer e un integer ha al massimo 32 bit, significa che la stringa può essere al massimo di 32 bit. Se hai un automa la cui stringa è 1 seguito da 32 zeri, come fai a convertirlo in integer?

20-01-2005 12:24
Click Here to See the Profile for andrea Click here to Send andrea a Private Message Find more posts by andrea Add andrea to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
LoneWolf
.grande:maestro.

User info:
Registered: Nov 2001
Posts: 883 (0.10 al dì)
Location:
Corso: Informatica
Anno: Boh!
Time Online: 2 Days, 0:35:31 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by andrea
Quando parlo di limitare intendo dire che se trasformi una stringa in un integer e un integer ha al massimo 32 bit, significa che la stringa può essere al massimo di 32 bit. Se hai un automa la cui stringa è 1 seguito da 32 zeri, come fai a convertirlo in integer?

Su questo hai ragione, ma il mio voleva essere solo un suggerimento, poi lo implementate come volete gestendo questo tipo di eccezioni.

Io ho usato la funzione strcmp.

http://digilander.libero.it/uzappi/...oni/strcmp.html

__________________
"It is totally natural to die or to be killed, rather than just to live without a certain purpose"

20-01-2005 12:29
Click Here to See the Profile for LoneWolf Click Here to See the Blog of LoneWolf Click here to Send LoneWolf a Private Message Visit LoneWolf's homepage! Find more posts by LoneWolf Add LoneWolf to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
mitnik
.illuminato.

User info:
Registered: Jun 2002
Posts: 235 (0.03 al dì)
Location:
Corso:
Anno:
Time Online: 3 Days, 4:25:25 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Avete gia ragionato sui movimenti di un automa? intendo dire come incrementate e decrementate la x o la y in base alla presenza degli ostacoli? a me sembra un po un casino.

20-01-2005 14:07
Click Here to See the Profile for mitnik Click here to Send mitnik a Private Message Find more posts by mitnik Add mitnik to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
p2p
.arcimaestro.

User info:
Registered: Oct 2002
Posts: 377 (0.04 al dì)
Location:
Corso: informatica
Anno:
Time Online: 4 Days, 7:49:11 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

domandina x chi usa le liste per gli ostacoli: avete definito un puntatore alla testa e alla coda della lista oppure no?

20-01-2005 15:52
Click Here to See the Profile for p2p Click here to Send p2p a Private Message Find more posts by p2p Add p2p to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
LoneWolf
.grande:maestro.

User info:
Registered: Nov 2001
Posts: 883 (0.10 al dì)
Location:
Corso: Informatica
Anno: Boh!
Time Online: 2 Days, 0:35:31 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by p2p
domandina x chi usa le liste per gli ostacoli: avete definito un puntatore alla testa e alla coda della lista oppure no?

Al momento ancora no, ma se finisco in tempo forse faccio una lista bidirezionale al posto di quella unidirezionale attuale.
In quel modo la ricerca degli ostacoli potrebbe diventare più veloce, ma si spreca spazio tenendo un puntatore in più in ogni record della lista.

__________________
"It is totally natural to die or to be killed, rather than just to live without a certain purpose"

20-01-2005 16:18
Click Here to See the Profile for LoneWolf Click Here to See the Blog of LoneWolf Click here to Send LoneWolf a Private Message Visit LoneWolf's homepage! Find more posts by LoneWolf Add LoneWolf to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
p2p
.arcimaestro.

User info:
Registered: Oct 2002
Posts: 377 (0.04 al dì)
Location:
Corso: informatica
Anno:
Time Online: 4 Days, 7:49:11 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

capito.. è vero l' uso della memoria è > vedro' se conviene tenerla o se l uso della coda è marginale...

cavolo ho fatto questa dichiarazione nella mia crea_lista() :

lnodo *p = malloc(sizeof(lnodo));

dove lnodo l avevo dichiarato prima con un typdef alla struttura della lista....

mi viene fuori a quella riga il seguente warning:

ISO C89 forbids mixed declaration and code


ne sapete qualcosa???boh

EDIT: Risolto.... non chiedetemi xchè lo faceva!:?

Last edited by p2p on 20-01-2005 at 16:42

20-01-2005 16:25
Click Here to See the Profile for p2p Click here to Send p2p a Private Message Find more posts by p2p Add p2p to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
dirkpitt
Il Laureando...

User info:
Registered: Dec 2002
Posts: 210 (0.03 al dì)
Location:
Corso: Informatica
Anno: 3bis
Time Online: 2 Days, 21:12:55 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by p2p
domandina x chi usa le liste per gli ostacoli: avete definito un puntatore alla testa e alla coda della lista oppure no?

solo alla testa

__________________
Esistono 10 tipi di persone al mondo: quelli che conoscono il codice binario e quelli che non lo conoscono... :D

20-01-2005 17:17
Click Here to See the Profile for dirkpitt Click here to Send dirkpitt a Private Message Find more posts by dirkpitt Add dirkpitt to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 08:15.    Post New Thread    Post A Reply
Pages (25): « First ... « 12 13 14 15 [16] 17 18 19 20 » ... Last »   Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.142 seconds (39.12% PHP - 60.88% MySQL) con 23 query.