sábado, 11 de maio de 2013

wal

MO417 - QUESTÃO PARA A PROVA ORAL

Número:

Enunciado: Analise a floresta de conjuntos disjuntos da figura abaixo.


Considere que foram feitas inicialmente 9 operações de MAKE-SET. Qual das seguintes alternativas tem como resultado final uma estrutura que representa a floresta de conjuntos disjuntos da figura acima, após as operações UNION descritas, usando somente união por ordenação (union by rank)?

a. UNION(x1, x4)
    UNION(x8, x9)
    UNION(x2, x6)
    UNION(x3, x4)
    UNION(x2, x3)
    UNION(x5, x7)
    UNION(x8, x7)

b. UNION(x8, x9)
    UNION(x2, x6)
    UNION(x3, x2)
    UNION(x5, x7)
    UNION(x2, x7)
    UNION(x8, x7)
    UNION(x1, x4)

c. UNION(x1, x4)
    UNION(x2, x6)
    UNION(x8, x9)
    UNION(x5, x7)
    UNION(x8, x5)
    UNION(x2, x3)
    UNION(x2, x4)
    UNION(x1, x7)

d. UNION(x8, x9)
    UNION(x1, x4)
    UNION(x2, x6)
    UNION(x5, x7)
    UNION(x8, x5)
    UNION(x2, x3)
    UNION(x4, x3)

e. NDA

Ideia Original: Wallace Felipe Francisco Cardoso

Nenhum comentário:

Postar um comentário