Skip to content

Pipes #1

Open
Open
@AhmedThahir

Description

@AhmedThahir

Input

|              | Separate Chaining                                            | Linear Probing             |
| ------------ | ------------------------------------------------------------ | -------------------------- |
| Working      | array with $n$ buckets pointing to linked lists for collisions |                            |
| Complexity   | $O(n)$                                                       | $O(1)$                     |
| Disadvantage | memory wastage                                               | possibility of full bucket |

Output

                  | Working                                                        | Complexity | Disadvantage
---               | ---                                                            | ---        | ---
Separate Chaining | array with $n$ buckets pointing to linked lists for collisions | $O(n)$     | memory wastage
Linear Probing    |                                                                | $O(1)$     | possibility of full bucket

Expected output

|                   | Working                                                        | Complexity | Disadvantage               |
| ---               | ---                                                            | ---        | ---                        |
| Separate Chaining | array with $n$ buckets pointing to linked lists for collisions | $O(n)$     | memory wastage             |
| Linear Probing    |                                                                | $O(1)$     | possibility of full bucket |

How can i edit the code to achieve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions