Book chapter
OA Policy
English

Near Optimal Hierarchical Encoding of Types

Published inTsichritzis, Dionysios (Ed.), Objects at large = Objets en liberté, p. 101-113
PublisherGenève : Centre universitaire d'informatique
Publication date1997-07
Abstract

A type inclusion test is a procedure to decide whether two types are related by a given subtyping relationship. An efficient implementation of the type inclusion test plays an important role in the performance of object oriented programming languages with multiple subtyping like C++, Eiffel or Java. There are well-known methods for performing fast constant time type inclusion tests that use a hierarchical bit vector encoding of the partial ordered set representing the type hierarchy. The number of instructions required by the type inclusion test is proportional to the length of those bit vectors. We present a new algonthm based on graph coloring which computes a near optimal hierarchical encoding of type hierarchies. The new algorithm improves significantly on previous results - it is faster, simpler and generates smaller bit vectors.

Citation (ISO format)
KRALL, Andréas, VITEK, Jan, HORSPOOL, R. Nigel. Near Optimal Hierarchical Encoding of Types. In: Objects at large = Objets en liberté. Tsichritzis, Dionysios (Ed.). Genève : Centre universitaire d’informatique, 1997. p. 101–113. doi: 10.1007/bfb0053377
Main files (1)
Book chapter (Published version)
Identifiers
151views
180downloads

Technical informations

Creation13/10/2021 10:34:00
First validation13/10/2021 10:34:00
Update06/01/2026 13:37:48
Status update06/01/2026 13:37:48
Last indexation06/01/2026 13:42:11
All rights reserved by Archive ouverte UNIGE and the University of GenevaunigeBlack