Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Hallo zusammen,

ich sollte für einen Kollegen fragen, wie man die Aufgabe 2,3 (im Anhang zu finden) löst.

Für eine Antwort + Lösungsweg wäre ich sehr dankbar!

Mit freundlichen Grüßen,

aether

 

aufgabe.png

Ich würde das so lösen:

Zunächst der Speicherbedarf einer einzelnen Positionsangabe:

Eine einstellige Hex-Zahl entspricht 4 Bit (16 mögliche Zustände): 11 * 4 Bit = 44 Bit = 5½ Byte

Ich gehe nicht davon aus, dass hier halbe Bytes verwendet werden sollen. Wenn man auf diesem Niveau Speicher sparen wollte, würde man zunächst ein sparsameres Datenformat wählen. Darum werden aus den 5½ Bytes aufgerundet 6.

Eine Positionsangabe pro Minute sind 1440 Positionangaben in 24 Stunden. Der Speicherbedarf ist also 1440 * 6 Byte = 8.640 Byte.

Hallo,

Für eine Hexadezimalzahl benötigst Du 4 Bit bzw. 1/2 Byte. Daraus folgt für jeden Speicherplatz 11 mal 4 Bit. Nun gibt es zwei Ansätze entweder das ganze wird in "vollen" Byte gespeichert oder der Minimalplatz, also 44 Bit pro einminütige Anzeige (wovon ich ausgehe, da sonst wiederum pro Variable drei komplette Byte genommen würden, d.h. auch für die erste Angabe drei Byte). Also:

24 Stunden * 60 Minuten * 11 Anzeigeelemente * 1/2 Byte = 7920 Byte

(Das ganze erfolgt codiert, d.h. die Werte N,S,W,E werden aus dem Hexadezimalen A,B,C,D "übersetzt".)

Grüße

Micha

Bearbeitet von mqr
Rechtschreibung

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.