Skip to content
Mumbai City · 33.4 °CMumbai Suburban · 34.6 °CPalghar · 34.9 °CRaigad · 34.4 °CThane · 36.9 °CRatnagiri · 33.2 °CSindhudurg · 33.3 °CPune · 35.1 °CNashik · 37.1 °CKolhapur · 29.9 °CSatara · 33.4 °CNandurbar · 42.9 °CDhule · 39.7 °CAhilyanagar · 38.0 °CSangli · 34.0 °CSolapur · 39.9 °CJalgaon · 42.2 °CChhatrapati Sambhajinagar · 40.7 °CBeed · 42.5 °CJalna · 41.4 °CDharashiv · 39.9 °CParbhani · 43.5 °CLatur · 39.8 °CHingoli · 41.3 °CNanded · 43.3 °CBuldhana · 40.3 °CAkola · 45.0 °CWashim · 41.2 °CAmravati · 44.3 °CYavatmal · 43.2 °CWardha · 42.7 °CNagpur · 45.8 °CChandrapur · 40.8 °CBhandara · 42.2 °CGondia · 41.0 °CGadchiroli · 40.1 °C

Heatwave response engine · Maharashtra

HEATSYNC

Sense the heat. Sync the response.

01 · The problem

Heat crosses district lines. Warnings rarely do.

Maharashtra’s heatwaves build over days and spread across borders — Vidarbha one week, Marathwada the next. The data to act on exists: hourly weather, decades of reanalysis, IMD’s criteria. What is missing is an engine that turns it into a coordinated response fast enough to matter.

  • Readings arrive as streams

    Stations report every hour; decisions need a rolling 24-hour picture without re-reading history.

  • Rankings are rebuilt by hand

    Which district is worst, which ones fall in a severity band — recomputed in spreadsheets, every day.

  • Neighbours are warned late

    Heat ignores district lines, but alerts are issued district by district, one at a time.

  • One bulletin, four audiences

    Citizens, farmers, hospitals and control rooms need different words for the same forecast.

45.8°C

Nagpur’s ERA5 daily maximum on 26 May 2024 — the hottest district that day.

12days

In a row, 20–31 May 2024, with at least 16 of 36 districts above 40 °C.

1283district-days

At or above 40 °C in the 2019 season — the worst of 2015–2025 in our archive.

77borders

Shared between districts. Every one is a path the heat — and the help — can travel.

Source: ERA5 reanalysis via Open-Meteo (CC BY 4.0), 36 district points, 1 Mar – 30 Jun 2015–2025. Borders: geoBoundaries.

The asphalt heats first.Then everyone on it.

Outdoor workers, drivers, vendors — the first people every HEATSYNC advisory is written for

02 · Eight structures, one response

Every lab experiment does a real job.

HEATSYNC is built from the eight data structures of the course — each one chosen because its operations match a step of the heat response, not bolted on for show.

Run them in the lab

Exp 01 · Array of structures

Station Registry

01

36 fixed slots, one per district weather station. Insert and delete at the end, search by code or name.

0
1
2
3
4
5
6
7

insertLast → slot [0] · size 0/8

O(1) insert · O(n) search

Exp 02 · Singly linked list

Alert Chain

02

Newest bulletin at the head; follow-ups slot in right after the bulletin they update.

head →
#12
AMR WATCH
→
#11
PBN WATCH
→
#10
NED WATCH
→
null

O(1) insert at head

Exp 03 · Stack · infix → postfix

Rule Compiler

03

IMD criteria written as readable rules, compiled to postfix and evaluated for every district.

tmax >= 40 && dep >= 4.5

postfix

O(n) per rule

Exp 04 · Circular queue

Sensor Ring

04

24 hourly readings per station. The oldest is overwritten in place — a rolling day, no shifting.

rear0

rear = (rear + 1) % 12

front = 0

count = 1

full → overwrite oldest

O(1) enqueue

Exp 05 · Binary search tree

Hotspot Index

05

Districts keyed by Tmax. Reverse in-order is the live ranking; range queries pull a severity band.

43.242.544.341.442.943.545.8

search 45.8 → right, right · reverse in-order = hottest first

O(h) search

Exp 06 · Graph · BFS

Heat Spread Graph

06

Shared borders are edges. BFS finds contiguous hot zones, alert rings and the nearest cooler district.

level 0 · queue → visit → enqueue neighbours

O(V²) matrix

Exp 07 · Sorting · binary search

Climate Archive

07

48,312 daily maxima, sorted once, so today can be ranked against eleven seasons in O(log n).

lo 0 · mid 5 · hi 10 → find 44.2 in O(log n)

O(n log n) · O(log n)

Exp 08 · Hash table · circular array

Instant Lookup

08

District by name, former name or HQ PIN — Aurangabad still finds Chhatrapati Sambhajinagar.

nagpur0
1
2
3
4
5
6
7
8
9
10

h = (h·31 + c) mod 11 · collision → (h + i) mod 11

O(1) average

03 · How an alert travels

From one reading to four advisories.

Computed in your browser on the 26 May 2024 replay — the same engine that runs the console.

01 · SenseEXP 04 · Circular queue

A rolling day, held in 24 slots.

Nagpur’s last 24 hourly readings up to 14:00. Each new hour overwrites the oldest in place — the rolling maximum never needs a re-read.

05-25 15:00 · 39.5 °C05-25 16:00 · 38.3 °C05-25 17:00 · 37.5 °C05-25 18:00 · 40.9 °C05-25 19:00 · 36.9 °C05-25 20:00 · 35.1 °C05-25 21:00 · 34.4 °C05-25 22:00 · 33.4 °C05-25 23:00 · 32.3 °C05-26 00:00 · 32.3 °C05-26 01:00 · 31.7 °C05-26 02:00 · 30.8 °C05-26 03:00 · 30.1 °C05-26 04:00 · 29.8 °C05-26 05:00 · 29.2 °C05-26 06:00 · 31.5 °C05-26 07:00 · 31.9 °C05-26 08:00 · 35.9 °C05-26 09:00 · 39.0 °C05-26 10:00 · 40.9 °C05-26 11:00 · 41.7 °C05-26 12:00 · 43.9 °C05-26 13:00 · 44.0 °C05-26 14:00 · 45.8 °CROLLING MAX45.8°
front / rear
0 / 23
count
24 / 24
mean
36.1 °C
min
29.2 °C
02 · JudgeEXP 03 · Stack

IMD criteria, compiled.

The heatwave rule is written the way a meteorologist reads it, converted to postfix with a stack, then evaluated for every district.

tmax >= 45 || (tmax >= 40 && dep >= 4.5)

tmax45>=tmax40>=dep4.5>=&&||
Nagpur:tmax 45.8dep +3.9 fires

Compiled rules agree with the reference classifier for 36/36 districts.

Postfix: tmax 45 >= tmax 40 >= dep 4.5 >= && ||

03 · RankEXP 05 · Binary search tree

The hottest, always in order.

36 districts inserted by Tmax. A reverse in-order walk reads them hottest first — tree height 15, not 36.

  1. 1Nagpur45.8°
  2. 2Akola45.0°
  3. 3Amravati44.3°
  4. 4Parbhani43.5°
  5. 5Nanded43.3°
  6. 6Yavatmal43.2°
04 · SpreadEXP 06 · Graph + BFS

Heat zones, not heat dots.

BFS over 77 shared borders groups hot districts into 2 contiguous zones; the largest spans 18 districts.

Mumbai City · 33.4 °CMumbai Suburban · 34.6 °CPalghar · 34.9 °CRaigad · 34.4 °CThane · 36.9 °CRatnagiri · 33.2 °CSindhudurg · 33.3 °CPune · 35.1 °CNashik · 37.1 °CKolhapur · 29.9 °CSatara · 33.4 °CNandurbar · 42.9 °CDhule · 39.7 °CAhilyanagar · 38.0 °CSangli · 34.0 °CSolapur · 39.9 °CJalgaon · 42.2 °CChhatrapati Sambhajinagar · 40.7 °CBeed · 42.5 °CJalna · 41.4 °CDharashiv · 39.9 °CParbhani · 43.5 °CLatur · 39.8 °CHingoli · 41.3 °CNanded · 43.3 °CBuldhana · 40.3 °CAkola · 45.0 °CWashim · 41.2 °CAmravati · 44.3 °CYavatmal · 43.2 °CWardha · 42.7 °CNagpur · 45.8 °CChandrapur · 40.8 °CBhandara · 42.2 °CGondia · 41.0 °CGadchiroli · 40.1 °C

Alert rings from Nagpur: 1 → 4 → 6 → 4 → 6 → 5 → 4 → 4 → 2 districts

05 · ChainEXP 02 · Singly linked list

Bulletins, newest first.

Every warning becomes a node inserted at the head. Follow-ups go right after the bulletin they update; nothing is copied or shifted.

  1. #119NagpurHeatwave← head
  2. #118AkolaHeatwave
  3. #117AmravatiWatch
  4. #116ParbhaniWatch
  5. #115NandedWatch
  6. … 14 more → null
06 · SpeakAdvisory engine

One forecast, four voices.

Drafts are generated per audience from the same analysis, and stay drafts until a person approves them.

Heatwave in Nagpur and Akola — 26 May 2024

  • Drink water often, even if you are not thirsty. Use ORS, lassi, buttermilk or lemon water.
  • Wear light, loose cotton clothes and cover your head with a cap, cloth or umbrella outdoors.
  • Check twice a day on elderly neighbours, young children and anyone living alone.

Draft · awaiting approval

04 · Live pulse

Today, through the same engine.

Open-Meteo’s forecast for each district, refreshed every 30 minutes and ranked, clustered and classified exactly like the replay.

Live console
Fetching today’s guidance…

05 · Built for

A real use case, an honest prototype.

The use case asks for region-wise heat analysis, hotspot identification, visual decision support and stakeholder-specific advisories. HEATSYNC delivers that slice — with data structures you can inspect line by line.

  • Human in the loop

    Advisories are drafts until a person approves them; only approved bulletins join the alert chain.

  • Honest data

    Replay uses ERA5 reanalysis, live mode uses Open-Meteo guidance — always labelled, never presented as official warnings.

  • Transparent rules

    IMD criteria are written as readable rules and compiled in the open; the step-by-step trace is one click away.

Use case
KJS-CES-01 · Climate Intelligence for Heatwave Monitoring, Prediction, and Early Warning
Vertical
Climate, Energy & Sustainability
Collaborating organisation
India Meteorological Department (IMD), Mumbai–Pune
Faculty owner
Dr. Radhika Kotecha, Professor and Head, Department of Information Technology
Course
Data Structures — Experiments 1–8, each mapped to a HEATSYNC module
Beneficiaries
SDMA, municipal corporations, agriculture and health departments, citizens

Heat moves. So should the response.

Scrub through the May 2024 heatwave, switch to today’s live guidance, and watch every structure do its job.