Zum Hauptinhalt springen
Echtzeit-Radar & Feeds
Alle RSS Feeds ➔
👥 Community & Social
Windows Tipps & SecurityGrafikkarte vor Überhitzung schützen: So geht’s(25.09.2026 um 08:00 Uhr)
••••••••••
Windows Tipps & SecurityGrafikkarte vor Überhitzung schützen: So geht’s(25.09.2026 um 08:00 Uhr)
••••••••••
Intelligence View
⚡ tsecurity.de Intelligence

Dynamic Arrays - DSA Notes 📝

🎯 Learning Goal What are the characteristics of dynamic arrays? What are the time complexities of dynamic arrays? 🧠 Key Concepts (aka My Notes) Dynamic Arrays Can grow as elements are added. Different langu…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!




🎯 Learning Goal




  • What are the characteristics of dynamic arrays?

  • What are the time complexities of dynamic arrays?









🧠 Key Concepts (aka My Notes)






Dynamic Arrays




  • Can grow as elements are added.

  • Different languages have different default array size (Java = 10 and C# = 4)






Insertion at end (Pushing)




  • End Pointer (or length) is important!

  • Insert a value at arr[length] and resize if length >= capacity




# Insert n in the last position of the array
def pushback(self, n):
if self.length == self.capacity:
self.resize()

# insert at next empty position
self.arr[self.length] = n
self.length += 1






⌚ Amortized Time Complexity is O(1)



This is amortized, meaning it's the average time taken for a sequence of pushing operations.



The resizing only happen when the array runs out of size, which does not happen on every push.



This is the same for deleting at end (popping)






Resizing




  • Copy the values to a new static array which is 2x the size

  • Deallocate the old array when everything has been copied over




def resize(self):
# Create new array of double capacity
self.capacity = 2 * self.capacity
newArr = [0] * self.capacity

# Copy elements to newArr
for i in range(self.length):
newArr[i] = self.arr[i]
self.arr = newArr






⌚ Time Complexity for resize is O(n)






🤔 Analyzing Time Complexity




  • Analyzing means we consider the sum of all operations



For example, to go from array of size 1 to size 8 requires 15 operations. Array operations went from 1 -> 2 -> 4 -> 8 (Don't forget to count the resizing as 1 extra operation.)



The last term is always greater than the sum of all the terms before it. (1+ 2 + 4 < 8).



The formula is that for any array size n, it will take at most 2n operations. (15 > 2 . 8)




Constants are dropped in time complexity analysis.




That's why resizing time complexity is O(n),






⌚ Time Complexity for Dynamic Arrays



Essentially the same as Static Arrays.
































Operation Big-O
Access O(1)
Insertion (at end) O(1)
Insertion (at middle) O(n) because of shifting
Deletion (at end) O(1)
Deletion (at middle) O(n) because of shifting

1. Sofort-Triage & Abwehrmaßnahmen

SOC Incident Playbook: Vulnerability Remediation & Verification
Syntax validiert (0 Fehler)
title: Detect Exploitation - Dynamic Arrays - DSA Notes 📝
id: 9a341147-c492-458d-95be-1699f850a119
status: experimental
description: Automatisch generierte SIEM-Erkennungsregel basierend auf CTI Intelligence
references:
  - https://tsecurity.de/
author: iShareStuff CTI Automated Detection Engine
date: 2026-09-27
logsource:
  category: network_connection
  product: any
detection:
  selection:
      CommandLine|contains:
        - 'exploit'
  condition: selection
falsepositives:
  - Legitime administrative Zugriffe oder Penetrationstests
level: high
tags:
  - attack.initial_access
Syntax validiert (0 Fehler)
rule CTI_Threat_Indicator {
    meta:
        author = "iShareStuff CTI Automated Detection Engine"
        date = "2026-09-27"
        description = "YARA Signature for "
    strings:
        $str = "Dynamic Arrays - DSA Notes 📝" ascii wide
    condition:
        any of them
}
Syntax validiert (0 Fehler)
index=security sourcetype IN ("cisco:asa", "pan:traffic", "zeek_conn", "suricata", "WinEventLog:Security")
("Dynamic Arrays - DSA Notes")
| stats count earliest(_time) as first_seen latest(_time) as last_seen by src_ip, dest_ip, dest_host, signature
| eval first_seen=strftime(first_seen, "%Y-%m-%d %H:%M:%S"), last_seen=strftime(last_seen, "%Y-%m-%d %H:%M:%S")
| sort - count
Syntax validiert (0 Fehler)
message: "*Dynamic Arrays - DSA Notes*"
Syntax validiert (0 Fehler)
CommonSecurityLog
| where Message has "Dynamic Arrays - DSA Notes"
| summarize EventCount = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated) by SourceIP, DestinationIP, DestinationPort, Activity
| extend DetectionRule = "iShareStuff-CTI-Compiled"
| sort by EventCount desc

2. Cyber Threat Intelligence & Forensik

🎯
MITRE ATT&CK Matrix Navigator 14 Taktiken
Reconnaissance
-
Resource Development
-
Initial Access
Execution
Persistence
-
Privilege Escalation
Defense Evasion
Credential Access
-
Discovery
-
Lateral Movement
-
Collection
-
Command and Control
Exfiltration
-
Impact
tsecurity.de Cognitive Threat RAG
Fokus-Vektor:

Analyse für identifizierte Bedrohung auf Basis von Live-CTI (ENISA EUVD): CVSS 0.0 · EPSS 0.0% · CISA KEV: nein. Handlungsableitung aus den verlinkten Hersteller-Quellen.

🛡️ Angriffsfläche & Exposure

Netzwerk/Remote-Zugriff ohne Vorauthentifizierung möglich.

⚡ Empfohlene Sofortmaßnahmen
  • 1. Perimeter-Inspektion: Relevante Portfreigaben und exponierte Endpunkte unverzüglich scannen.
  • 2. Patch-Applikation: Hersteller-Hotfix einspielen oder betroffene Daemons in isolierte DMZ-Segmente überführen.
  • 3. Telemetrie & EDR-Alerts: Prozessaufrufe und Child-Processes auf anomale Shell-Spawns überwachen.
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Dynamic Arrays - DSA Notes 📝

Thematisch verwandte Begriffe: Dynamic, Arrays, Notes · 6 Treffer

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

💬 Kommentare werden geladen…
Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-100739 | A vulnerability was detected in mathurvishal CloudClassroom-PHP-Project…
Advisory →
tsecurity.de Icon
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag