Sun, 17 May 2015 17:31:32 +0200
updated copyright notice + added files for upcoming AVL tree implementation
universe@192 | 1 | /* |
universe@192 | 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
universe@192 | 3 | * |
universe@192 | 4 | * Copyright 2015 Olaf Wintermann. All rights reserved. |
universe@192 | 5 | * |
universe@192 | 6 | * Redistribution and use in source and binary forms, with or without |
universe@192 | 7 | * modification, are permitted provided that the following conditions are met: |
universe@192 | 8 | * |
universe@192 | 9 | * 1. Redistributions of source code must retain the above copyright |
universe@192 | 10 | * notice, this list of conditions and the following disclaimer. |
universe@192 | 11 | * |
universe@192 | 12 | * 2. Redistributions in binary form must reproduce the above copyright |
universe@192 | 13 | * notice, this list of conditions and the following disclaimer in the |
universe@192 | 14 | * documentation and/or other materials provided with the distribution. |
universe@192 | 15 | * |
universe@192 | 16 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
universe@192 | 17 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
universe@192 | 18 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
universe@192 | 19 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE |
universe@192 | 20 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
universe@192 | 21 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
universe@192 | 22 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
universe@192 | 23 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
universe@192 | 24 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
universe@192 | 25 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
universe@192 | 26 | * POSSIBILITY OF SUCH DAMAGE. |
universe@192 | 27 | */ |
universe@192 | 28 | |
universe@192 | 29 | |
universe@192 | 30 | /** |
universe@192 | 31 | * @file avl.h |
universe@192 | 32 | * |
universe@192 | 33 | * AVL tree implementation. |
universe@192 | 34 | * |
universe@192 | 35 | * This binary search tree implementation allows average O(1) insertion and |
universe@192 | 36 | * removal of elements. |
universe@192 | 37 | * |
universe@192 | 38 | * @author Mike Becker |
universe@192 | 39 | * @author Olaf Wintermann |
universe@192 | 40 | */ |
universe@192 | 41 | |
universe@192 | 42 | #ifndef UCX_AVL_H |
universe@192 | 43 | #define UCX_AVL_H |
universe@192 | 44 | |
universe@192 | 45 | #ifdef __cplusplus |
universe@192 | 46 | extern "C" { |
universe@192 | 47 | #endif |
universe@192 | 48 | |
universe@192 | 49 | |
universe@192 | 50 | |
universe@192 | 51 | |
universe@192 | 52 | #ifdef __cplusplus |
universe@192 | 53 | } |
universe@192 | 54 | #endif |
universe@192 | 55 | |
universe@192 | 56 | #endif /* UCX_AVL_H */ |
universe@192 | 57 |