{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "b71dbf41",
   "metadata": {},
   "source": [
    "### Heap"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "afb8af06",
   "metadata": {},
   "source": [
    "- Real life Analogy:\n",
    "    - ![](https://raw.githubusercontent.com/hksahil/Python-101/53431b53763ed4bcfe14846ed375bc0d0b807e84/Images/Screenshot%202022-09-20%20at%2011.15.36%20PM.png)\n",
    "- Heap is Incomplete Binary Tree\n",
    "    - Incomplete as in last level isn't completely filled.Its Random.\n",
    "    - It is used to store information\n",
    "    - ![](https://raw.githubusercontent.com/hksahil/Python-101/1bf7615056ec6df33e60da5cf827c849c85d22b8/Images/Screenshot%202022-09-20%20at%2011.19.17%20PM.png)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "e93d9f0c",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.12"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}