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 > Progetto Algo Torelli
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
Antrox
.fedelissimo.

User info:
Registered: Aug 2002
Posts: 59 (0.01 al dì)
Location: Lecco
Corso: Informatica
Anno: 3
Time Online: 2 Days, 11:28:30 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Progetto Algo Torelli

E' uscito il progetto "Huffman".
Qualche idea?

Grazie 1000

__________________
Resistance is futile

16-09-2003 10:33
Click Here to See the Profile for Antrox Click here to Send Antrox a Private Message Find more posts by Antrox Add Antrox to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
lino
.precettore.

User info:
Registered: Jun 2003
Posts: 96 (0.01 al dì)
Location: lodi
Corso: informatica
Anno: terzo
Time Online: 2 Days, 1:25:20 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Anch'io vorrei farlo..... Come te la cavi con il C.

16-09-2003 14:26
Click Here to See the Profile for lino Click here to Send lino a Private Message Find more posts by lino Add lino to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Giz
BANNED

User info:
Registered: Jan 2002
Posts: 224 (0.03 al dì)
Location: Milano (Lugano)
Corso: Informatica Triennale
Anno: 4 (quasi 5 pD...)
Time Online: 2 Days, 5:17:00: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ok, siamo in 3!

Per adesso non ho ancora scritto niente, ma appena comincio a implementare vi faccio sapere le mie idee!

Viceversa

19-09-2003 09:52
Click Here to See the Profile for Giz Click here to Send Giz a Private Message Find more posts by Giz Add Giz to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Antrox
.fedelissimo.

User info:
Registered: Aug 2002
Posts: 59 (0.01 al dì)
Location: Lecco
Corso: Informatica
Anno: 3
Time Online: 2 Days, 11:28:30 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Dunque.
Ho provato a costruire Huffman sulla base dei caratteri con le
frequenze date nel testo del progetto (pag. 1 e 2).
Ma ottengo il codice:
a 111
c 100
e 101 (e non 110)
g 0100
n 110 (e non 101)
o 00
p 0101
t 011

Anche voi avete risultati del genere?
Eppure l'heap mi sembra di gestirlo bene.
Se invece di trovare il max dell'heap devo trovare il min?
Non è detto che sia A(heapsize(A))!!!!!!

__________________
Resistance is futile

19-09-2003 11:01
Click Here to See the Profile for Antrox Click here to Send Antrox a Private Message Find more posts by Antrox Add Antrox to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
lino
.precettore.

User info:
Registered: Jun 2003
Posts: 96 (0.01 al dì)
Location: lodi
Corso: informatica
Anno: terzo
Time Online: 2 Days, 1:25:20 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Per quanto riguarda la struttura dati?
State usando entrambi la stessa?

19-09-2003 12:06
Click Here to See the Profile for lino Click here to Send lino a Private Message Find more posts by lino Add lino to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
mrsatan
.novellino.

User info:
Registered: Sep 2003
Posts: 5 (0.00 al dì)
Location: PC
Corso: informatica
Anno: 3
Time Online: 4:46:55 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

anchio sto provando a fare il progetto di c.

come faccio a prendere numeri da un file?
fscanf mi da errore, nn capisco
l'esercizio che usa fscanf a pag 436 del libro di c, l'ho copiato su un file, nn mi da errore di compilaz, ma quando lo eseguo...

perchè l'input si deve prendere dal file, vero?

i caratteri con getc li prende, poi i numeri nn sono in grado di prenderli....

help, ciaooo

19-09-2003 12:54
Click Here to See the Profile for mrsatan Click here to Send mrsatan a Private Message Find more posts by mrsatan Add mrsatan to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
lino
.precettore.

User info:
Registered: Jun 2003
Posts: 96 (0.01 al dì)
Location: lodi
Corso: informatica
Anno: terzo
Time Online: 2 Days, 1:25:20 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Perchè non ci troviamo tutti per confrontare le idee e fare il punto della situazione?

20-09-2003 07:42
Click Here to See the Profile for lino Click here to Send lino a Private Message Find more posts by lino Add lino to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
yeffa
.amico.

User info:
Registered: Oct 2002
Posts: 22 (0.00 al dì)
Location:
Corso:
Anno:
Time Online: 6:35:07: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
progetto torelli

Puoi spiegare che struttura dati hai usato per ottenere i codici?

mi sembra che si debba implementare un albero a gestire una lista
ma non so come .Grazie



------------------

Originally posted by Antrox
Dunque.
Ho provato a costruire Huffman sulla base dei caratteri con le
frequenze date nel testo del progetto (pag. 1 e 2).
Ma ottengo il codice:
a 111
c 100
e 101 (e non 110)
g 0100
n 110 (e non 101)
o 00
p 0101
t 011

Anche voi avete risultati del genere?
Eppure l'heap mi sembra di gestirlo bene.
Se invece di trovare il max dell'heap devo trovare il min?
Non è detto che sia A(heapsize(A))!!!!!!

23-09-2003 08:29
Click Here to See the Profile for yeffa Click here to Send yeffa a Private Message Find more posts by yeffa Add yeffa to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
matrix
.primate.

User info:
Registered: Sep 2002
Posts: 71 (0.01 al dì)
Location:
Corso: Informatica
Anno: secondo
Time Online: 3 Days, 10:42:36 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

quindi, a me per ora vengono codici diversi, ma penso di risolvere presto il problema...cmq penso che tu abbia ragione, perche' facendo a mano, e tenendo conto dell'ordine ascii...la n e la e dovrebbero venire codificate come hai scritto tu, e non come riportato sul testo...

23-09-2003 10:01
Click Here to See the Profile for matrix Click here to Send matrix a Private Message Find more posts by matrix Add matrix to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Nonsaprei
.arcimaestro.

User info:
Registered: Oct 2002
Posts: 485 (0.06 al dì)
Location: Sobborghi
Corso: Non rilevato
Anno: Ignoto
Time Online: 7 Days, 11:31:45 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ehm, il prof ha messo sul suo sito i passaggi che bisogna eseguire.... e viene come c'è scritto sul testo del progetto!!
Controllate!

__________________
Spaghetti!!!

23-09-2003 12:09
Click Here to See the Profile for Nonsaprei Click here to Send Nonsaprei a Private Message Find more posts by Nonsaprei Add Nonsaprei to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
yeffa
.amico.

User info:
Registered: Oct 2002
Posts: 22 (0.00 al dì)
Location:
Corso:
Anno:
Time Online: 6:35:07: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

sono riuscito a costruire l'albero binario delle somme
ma non so che metodo usare per ricavare i codici per ogni
carattere.Intendo l'etichettatura degli archi dell'albero .
Qualcuno sa darmi una dritta?Grazie

26-09-2003 00:20
Click Here to See the Profile for yeffa Click here to Send yeffa a Private Message Find more posts by yeffa Add yeffa to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
matrix
.primate.

User info:
Registered: Sep 2002
Posts: 71 (0.01 al dì)
Location:
Corso: Informatica
Anno: secondo
Time Online: 3 Days, 10:42:36 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

qualcuno mi puo' dare una dritta su come fare la funzione codifica e la stampacodice? pensavo di costruire un altro albero di nodi(con i caratteri e i loro codici dentro ogni nodo),ma non riesco a implementarlo....mi potete dare una mano?


yeffa non ho capito cosa chiedi....cmq io ho usato un albero di nodi per inserire le parole, poi un altro albero di nodi per i caratteri e le loro frequenze, e da questo ho calcolato lo heap, che ho dato in pasto alla funzione per calcolare huffman

26-09-2003 11:44
Click Here to See the Profile for matrix Click here to Send matrix a Private Message Find more posts by matrix Add matrix to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Antrox
.fedelissimo.

User info:
Registered: Aug 2002
Posts: 59 (0.01 al dì)
Location: Lecco
Corso: Informatica
Anno: 3
Time Online: 2 Days, 11:28:30 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Dunque.
Ho implementato fino alla procedura codifica.
MA eseguendo il pgm con il secondo input del testo del progetto,
cioè quello con Cane,cane,tappo# e $abab! mi viene un codice con lo stesso costo di quello del prof. 710 alla prima iterazione ,ma con 3 caratteri con codice di Huffman leggermente diverso.
Alla seconda iterazione mi viene un codice con costo 375 invece che 370.
Qualcuno puoi confermarmi che con il suo pgm vengono SEMPRE esattamente codice e costi dati da Fiorentini?
Considerate che le frequenze E l'heap minimo mi vengono giusti E che l'output ,il costo E IL CODICE per il primo esempio (gatto,topo,cane)mi vengono IDENTICI!!!

GRAZIE 1000
:evil: :evil:

__________________
Resistance is futile

26-09-2003 12:21
Click Here to See the Profile for Antrox Click here to Send Antrox a Private Message Find more posts by Antrox Add Antrox to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
yeffa
.amico.

User info:
Registered: Oct 2002
Posts: 22 (0.00 al dì)
Location:
Corso:
Anno:
Time Online: 6:35:07: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

è scaduto il termine della consega.qualcuno può mettere a disposizione il codice del progetto?

01-10-2003 06:24
Click Here to See the Profile for yeffa Click here to Send yeffa a Private Message Find more posts by yeffa Add yeffa to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 07:24.    Post New Thread    Post A Reply
  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.234 seconds (57.86% PHP - 42.14% MySQL) con 26 query.