In S02E12 of Star Trek: Discovery it is found to be impossible to delete some recently acquired data from the ship's memory. The data seems to resist being deleted, and cancels a self-destruct sequence to prevent it's own demise.
How can data in a computer memory do this? I'm looking for in-universe explanations.
Note: Not a duplicate of Why can't Discovery's Data Core be separated from the ship?. The question there is why, not how. The answer says that the data can "take over the ship", I'm asking how that is even possible given what we know about computers in Trek.