#what is Data Structure
Explore tagged Tumblr posts
Text
Data Structures Demystified: A Guide for New Programmers

Learn what a data structure is and why it’s essential in programming. This tutorial explains types, uses, and examples to help you understand data organization and efficient problem-solving techniques.
0 notes
Note
pez dispenser update, yay!
I am Very Interested in the direction you're taking izuku here. He seems to have come out the other side of this breakdown going, "no look! I trust you guys! Here, I trust you guys so much! You can know about the severe injuries I had as a child that never got a police report!"
It's funny to read izuku's pov vs aizawa. Izuku is just like, wow this all needs to end so I can get back to being the Normal And Awesome Deku I have turned myself into, and aizawa is like thirty seconds from having his own panic attack at having a few months to turn this kid into a functional human being.
You can truly tell that with how izuku keeps insisting on that he's got this by himself, with no understanding how crazy it is to expect his friends and teachers to back out and let him take over, that he, still, still, STILL has simply 0 faith or expectation that his teacher is driven to help the little kid in izuku that he's buried so deep down there. That an authority figure who isn't all might wants to save him. I want to eat his unthinking, warped by trauma thought patterns, they are delicious.
Kinda touching that midoriya foresaw and tried to avert the all might conversation issue. Rip, dude really tried, but baby izuku is like one of those puddles in flooded old buildings you can find videos of people dropping a rock in -- it doesn't look that deep, but if you tried to put your foot in, you would be getting a whole lot more than your shoe wet.
Yeahhhhhh Izuku’s really not handling it the best.
Izuku genuinely didn’t keep everything a secret all these years because he didn’t trust his friends. It wasn’t that he thought they’d react poorly or hurt him with the information or spread it around or anything like that. This was purely due to his own internal issues around it.
But they’re three years deep into being in the fucking trenches together. And Izuku very much is considered a bedrock of the class. You can see it in their internal monologues—everyone trusts him implicitly. It’s Izuku. If one of them was going through something sensitive or painful, he’d be at the top of the list of people to turn to. For like, the entire class.
And while Izuku isn’t per se aware of the fact that the entire class views him as the best of them, he is painfully aware of the fact that they’ve opened up to him over the years. And that this is making it look like he didn’t tell them a single detail about his life before he came to the school. Which is fair, because he sort of didn’t.
So he’s overcompensating. He doesn’t need privacy because he trusts them so so much and this proves it, right?? They can totally know the sordid details of the past he’s in active crisis over.
He’s scared that he’s going to lose the people who have trusted him over the years because he seemingly didn’t trust them back. But they all trust him so much that they’re more beating themselves up than blaming him.
Todoroki and Mirio were in that scene like “uuuuhhhh you look like you’re a second from a panic attack we can totally give you space if it makes you more comfortable” and Izuku’s in a spiral like Why Would I Need Space I Trust You Both Implicitly Please Ignore The Obvious Distress.
Fundamentally, Izuku has never processed what happened to him as a kid. He didn’t tell them because he wasn’t ready to confront how bad it was back then. It wasn’t about trust. Telling them meant saying aloud what happened. He just wasn’t ready for that.
And from the path canon took, I don’t really see Izuku trusting adults. His childhood did absolutely nothing to make him think teachers would protect him. And for all Aizawa did right, I think this is one bag in canon he legitimately dropped.
I want to be clear—Aizawa was working at a severe disadvantage. He didn’t even have a lot to tell him the problem existed, let alone how to address it. But it’s specifically the Hero Killer Stain Arc that makes me think that Izuku only would trust Aizawa to a certain point.
After the Hero Killer Stain Arc, Aizawa canonically calls out Iida, Todoroki, and Izuku in front of the entire class. He doesn’t mention what it's about, but he makes it very clear that he knows what happened and that he disapproves. And his criticism is specific: In instances where you are out matched, it is better to run and get help. Iida, Midoriya, and Todoroki need to understand that
The thing is that Izuku and Todoroki both considered that as their first option and then correctly deduced that they'd be burying Iida if they did that.
I will actually die on the hill that is that Izuku and Todoroki did everything right when it came to the Hero Killer Stain. Iida caused the problem, but the fact that he made mistakes was the point of that arc for him. But Izuku and Todoroki?
They both reacted perfectly. And if they had done a single thing differently, they'd have two dead bodies.
When Izuku realizes that Iida's in danger, the city is on fire, Nomu are attacking the train, and his supervisor has fucked off to fight monsters attacking the city. He does not have an adult hero who is free to bring with him, and we know for a fact that he did not have time to hesitate or try to find other options, because he arrives the second before Iida dies as-is. When he's on scene, his absolute first instinct is to run. Izuku canonically clocked the fact that he was out matched, evaluated whether he could safely retreat, and realized he’d never be able to get out of there with Iida and Native. He’d have to leave one or both of them to die.
So he asked for help the safest way he could: sending out the mass text and stalling for time. And canonically, he wasn’t hoping a classmate would show up to the fight. He was hoping they’d report it to their supervisors and get him help, which is exactly what multiple of his classmates did.
Todoroki, for his part, correctly clocked that something was wrong with Izuku when he got the message. And he didn’t just fuck off without telling anyone where he was going. He evaluated the situation, realized the city was on fucking fire and there wasn’t a single hero free to go with them, and told the heroes with him that they needed to go to this exact location the first second they could. And he didn’t have a moment to hesitate or figure something else out, because he also showed up at the very last second before Iida took a sword to his spine.
Frankly, Todoroki and Izuku couldn’t have possibly handled the situation better, but they got absolutely shit on in the aftermath. I don’t recall a single adult who told them they did the right thing, except maybe Native. They had the fucking chief of police telling them they were no better than the guy who tried to kill their teenage friend with a sword and their teacher publicly calling them out in front of the class without the benefit of context.
If I was Izuku, I would have walked out of that entire thing having my preexisting distrust of adults affirmed. Like. There isn’t a world where Izuku realistically looks back on his actions and thinks “damn I really should have left Iida die.” He’s not going to change a fucking thing in what he did. Every single time, he’s going to go save his friend. The only realistic take away Izuku could have from Aizawa’s call out was “wow, that guy is not going to have my back if I have to make a tough call. So if I have to make one, then I’m just not going to him for help.”
Which is kind of where we're at in pez right now, and Aizawa's starting to realize it. Don't get me wrong, Izuku trusts Aizawa more than any teacher he ever had growing up. He doesn't think Aizawa is going to be actively malicious to him. But he also doesn't necessarily think Aizawa's going to have his back.
The crux of it is in chapter 4. Tiny Izuku says that Mr. Aizawa is already on Izuku's side, and Izuku's immediate reply is, "I promise you that Mr. Aizawa has never once been on my side." He back pedals fast, clarifies that he thinks Mr. Aizawa is fair and not on anyone's side, but his knee-jerk reaction is undeniable.
And to me? It's because Aizawa genuinely has not been on Izuku's side since he came to UA. And I don't mean Aizawa has been malicious to Izuku. Fundamentally, the issue is that he misdiagnosed the problem.
Aizawa has spent his entire time with Izuku mistakenly believing that the source of Izuku's issues was the same as Bakugou's. He is only now realizing that his issues were more like Shinsou's.
Fundamentally, Aizawa correctly recognized that Izuku's problems came from the fact that he was raised in an unjust system. But he misunderstood what Izuku's position in it was.
Here's what Aizawa knows, from the jump: Izuku and Bakugou came from the same school. Both have very powerful Quirks. Both have obvious issues with the other. Izuku specifically moves and looks like he had a professional trainer, meaning someone invested in his training as a hero. Bakugou talks like someone who's been told his entire life that the sun shines out his ass and never got punished for being a little shit. Izuku's more muted, but he came from the same school. Two kids with powerful quirks? Likely were getting away with the exact same shit.
When you have an unjust system, you have the people running it, the people benefitting from it, and the people being victimized by it. If the teachers at Aldera were letting kids with powerful quirks get away with murder, both Izuku and Bakugou were likely benefitting from that. And it is absolutely vital that Aizawa undoes that damage before they debut.
He doesn't even need to think Izuku, specifically, was abusing his position in this power imbalance. The damage is done from how the teachers at aldera were likely treating him. Teachers that produce kids like Bakugou tell talented, powerful kids that they're special, that they're above the rules, that they've got something so fundamentally important about them that they can get away with more. Even if you don't chose to abuse that narrative in the moment, that's a hell of a formative experience.
They're about to have a ridiculous amount of power. They are about to be in charge of enforcing the rules. And people who are in charge of enforcing the rules and think they're above them turn into Endeavor.
Aizawa's approached Izuku from a sort of tough love perspective from the jump. He didn't cut him an ounce of slack, and it's because he genuinely was trying to do right by Izuku. No, he's not going to get to smash up his body and make himself a hazard. Figure it out, or go home.
He's had plenty of time to learn how to manage his quirk, after all.
With Stain? I don't think Aizawa, if he knew the full circumstances, would genuinely say the right call is to have Iida's fucking funeral. I think he'd agree with the decisions Izuku and todoroki made. But he didn't have all the information, and, fatally, he didn't ask. He assumed.
He's got three powerful, bullheaded students who end up in a back alley in the middle of the night, having all separately ditched the heroes they were supposed to be joined at the fucking hip with. He absolutely thinks that they either planned it together or that, when they realized what Iida did, Todoroki and Iida went after him in secret to try to keep Iida from getting in trouble--and almost got them all killed in the process. There is absolutely no way Aizawa knows that they actually tried to run and get help at every turn.
Aizawa made assumptions. And a big reason why he felt comfortable making those assumptions was because he thought he knew what Izuku's problem was. He thought Izuku, like Bakugou, had been benefitting from teachers turning a blind eye to his misbehavior for years. But the problem was the exact opposite. Teachers had been turning a blind eye to his victimization for years.
He shouldn't have been treating him like Bakugou. He should have been treating him like Shinsou.
Aizawa's trying to correct the damage of past teachers. If they've spent years telling Izuku he's god's gift to mankind and it doesn't matter what he does because he's a hero and that makes up for it, Aizawa needs to hold him to the fucking rules. He needs him to understand that he's not special, he's not the main character, he's not intrinsically better or more important or above the rules in some magically important way. He doesn't want to hear excuses. He doesn't want to know why this time it was different. Izuku needs to understand that he has to live by the rules too, because he's going to be in charge of enforcing them soon.
But if they've spent years telling him he's worthless, that people can hurt him and it's okay, that he can never, ever expect help from them because he's not worth it? Then fuck, Aizawa needed to do the opposite. He needed the same end result, don't get me wrong--an understanding that the system equally applies to everyone--but he needs to make Izuku believe that the system will protect him again. That Aizawa will protect him. And Aizawa's combing over every fucking interaction they've ever had, and realizing that he hasn't done that, because he spent all his time trying to correct a problem that didn't exist.
I think Aizawa's been beating his head against the problem that is Midoriya Izuku for the past three years. Because Izuku's a hard-worker. He is brilliant. He is a natural leader. He is the fucking cornerstone of the class. He is shining so bright that it's going to kill him, because Aizawa knows how to recognize a star that's burning out.
For three years, Aizawa has tried and failed to get Izuku to realize he can and should ask for help. And he has failed because he thought the problem was that Izuku didn't think he needed help, when the problem was actually that he thought no one would give it to him.
In this last chapter, Izuku finally said aloud the reason behind the core issue Aizawa’s had with him his entire time at UA: Growing up, he thought that there was literally one man on the planet who would care enough to save him. He was the most hero-obsessed boy Aizawa’s ever met, and he thought All Might was the only hero alive he could count on to care if he lived or died.
There it is. The exact answer about every scrap of self destructive behavior that Aizawa’s been trying and failing to remedy for years. Why the fuck would he ask for help when he needs it? He’s spent his entire life living in a world where people wouldn’t piss on him if he were on fire. Aizawa needed every day of those three years to reverse that kind of damage, and he’s out of fucking time.
Aizawa is legitimately terrified that he fucked up and that it's going to kill Izuku.
Izuku’s Quirklessness is the missing piece of the puzzle that makes everything fall into place—which is why he’s so pissed at All Might for not telling him. Aizawa’s actually kicking himself for not noticing the obvious discrepancies in Izuku’s past. The fact that he grew up with a powerful Quirk was the factor that made him return to the same incorrect conclusion again and again. There were enough hints that he feels guilty for not figuring it out anyway, but if he had known about Izuku’s Quirklessness from the start? He would have figured it out in seconds.
Now that he knows, Aizawa’s changed how he handles Izuku. He doesn’t let there be a single doubt about what he’s doing or why. He makes Izuku explain himself, so that way there’s no more miscommunications around what he means. He makes sure to compliment him whenever he does something right—he’s trying to change courses, but he’s panicking that it’s too little, too late.
And now he’s got this goddamn criminal investigation that Izuku wants to bury, and it’s killing him. Because that’s his student, and he was hurt horribly. And his student just cannot comprehend why Aizawa cannot let it go.
And then there’s All Might.
All Might’s conversation with baby Izuku, for me, forecloses the possibility that explaining OfA is a solution here.
All Might really went in and knocked it out of the park with the best possible attempt at convincing Tiny Izuku that he’s himself. He immediately failed, albeit, but he honestly couldn’t have done better.
There he is, Izuku’s lifelong hero. And he’s there to say the things Izuku’s spent his whole life wanting to hear. All Might met him, and Izuku inspired him. He reminded him of himself when he was young. He thought he could be a hero. He was so impressed he offered to personally mentor Izuku.
And he loved him. Believe you are him, because I loved you too much to ever let anyone take you from me. There is a fundamental flaw in your theory that simply no one cared enough to notice or stop him, because I love you with all of me. I would have noticed. I would have saved you.
If there is absolutely anything that could have convinced Tiny Izuku, it would be that. This isn’t about quality of the explanation. There’s an internal issue that needs to be fixed before Tiny Izuku will believe any of this.
And I think Izuku recognizes this, on a level. As much as he and Tiny Izuku clash, Izuku gets him. He can typically predict Tiny Izuku’s exact responses to things.
But he’s never approached Tiny Izuku like someone he can explain this to. He’s spent this entire time trying to cheat code his way out of this situation. He wants Mr. Aizawa to erase him or to go find the Quirk user and find away to negate the Quirk. He’s never actually even considered explaining this all to himself as a solution.
Because he knows that there’s some kind of fundamental impossibility about it. Even if he can’t say exactly what it is, he knows that there’s an internal issue that means he’s not going to be able to just tell Tiny Izuku the truth.
Voice of God, he is dead fucking right about Tiny Izuku not buying OfA and being liable to tell everyone out of spite. Tiny Izuku would have that shit on the news.
Fundamentally, Izuku is aware that there is a deeper problem driving Tiny Izuku. He knows that it’s not about the quality of the explanation. There is something deeply, profoundly wrong because of what happened to him that makes him absolutely unable to accept that Izuku is him.
But Izuku has never known how to solve the mental wounds his childhood left him with. He still has them himself. He’s been burying them for years, and he can’t anymore.
When action opens in pez, Izuku himself is not okay. He’s just… bleeding internally. He knows how to hurt in ways people can’t see. But you can see how much his childhood is still bothering him in his defense of Mirio. He has never been able to let go of what happened to him. The wounds never healed.
And he doesn’t know how to go to these people he loves and tell them that what they’re trying fundamentally will fail, because he knows he’s been hiding this fucking shipwreck of his own mental health for the past three years but they don’t have a fucking clue at the scale of the problem.
At the end of the day, All Might went in there because he wanted to save Izuku. And Izuku told him not to because he cannot imagine himself being saved.
#pez dispenser debris#a lot of people in the comments were like ‘the only thing to do is to explain OFA they can’t get around it’ tiny Izuku WILL HAVE that shit#on the fucking news.#it’s not about the quality of the explanation#to me the late bloomer thing is the best explanation they could have#like it is /absolutely fucking bonkers/ to claim that his personal hero all might passed him a seemingly immutable genetic trait#‘our hero all might gave me his eye color or like. his kidney function. no not his kidney just how it worked.’ like that’s insane#for me AfO and OfA are fundamentally different beasts than a copy quirk like monomas#monoma is a very selective shape shifter. he alters his own physical structure briefly to match someone else#afo and OfA are permanently alterations to /other peoples bodies/ which is a huge step farther than what m#what people originally thought quirks capable of#tiny Izuku’s only vaguely aware of afo and doesn’t have enough data to contemplate if OfA would be possible but would sound so fake to him#right now. it’s not about the quality of the explanation it’s something else that’s making him reject this#at least with late bloomers there’s precedence and it sort of fits with the idea that Izuku seemingly has multiple quirks#it’s vaguely been referenced in a few places but there’s a lot of people in quirk sciences who have noticed Izuku’s breaking rules with his#quirk and are asking to like. study him. Izuku’s started to sweat because of it#but the prevailing theory is that he’s the next step in evolution. some scientists would swear up and down that Izuku’s the start of the#next boom. him being a late bloomer would be easily assimilated into that theory. people are going to get quirks later and stronger now.#it’s possible that new mutations will be introduced to the population#Izuku’s fucking /sweating/ because monoma went around talking about how he has a stockpile quirk and he knows that his quirk breaks the#fundamental rules of stockpiling quirks. he’s terrified it’s going to get back to someone who realizes that and starts making noise about#him having a new mutation. he doesn’t have a new mutation. he has a mutation that went extinct at the dawn of quirks and is only preserved#through OfA.
43 notes
·
View notes
Text
tcw is so good at introducing us to characters and bite-sized stories that capture our attention and so, SO bad at following even a modicum of logic when it comes to the consequences of actions under military law
#personal#or just anything with the military in general#their organizational structure is in SHAMBLES#also anakin ALONE should've been written up for like half the shit he's pulled#like what do you MEAN you didn't wipe the extremely sensitive data off your astromech droid because you didn't want to. checks notes.#''POTENTIALLY risk wiping r2's personality even though not doing so DEFINITELY risks the lives of at minimum thousands of personnel across#the entire GAR''???????#AND THEN LOSE THAT VERY SAME ASTROMECH DROID PUTTING ALL THOSE AFOREMENTIONED LIVES INTO REAL JEOPARDY#WHAT DO YOU MEANNNNNN THERE WERE NO TANGIBLE CONSEQUENCES#FOR NOT FOLLOWING BASIC OPSEC!!!!! YOU ARE A *GENERAL*!!!!!!!!!!!!!!!#AUGHHHHH#also!!! you CANNOT just IGNORE or outright DEFY the orders of your DIRECT SUPERIOR OFFICER#that is INSUBORDINATION!!!!! YOU CAN BE COURT MARTIALED FOR THAT ANAKIN!!!!!!!!!!!!#tcw just goes ''(sighing fondly) oh ANAKIN'' every time he pulls shit like this#like okay yes the jedi are not military first they're jedi first but they are OPERATING. AS MILITARY. IN A WAR!!!!!! RULES ARE THERE FOR#A REASON#AUGHGHFDJKGHFDJKG
34 notes
·
View notes
Text
Being in a data governance class makes it so weird to watch the shit that tech giants are continuously pulling. I see them mass data scraping for AI training and I'm like. But Wait. What about GDPR??? Hello??? User privacy and right to access/correct/delete??? I know that's an EU thing but other places have their own data protection acts too!!! And they're pulling these moves that communicate such flagrant disrespect and irresponsibility for the handling of user data.
In the IT courses I've taken, they've taught us something that's really stuck with me: "Just because we can doesn't mean we should."
My data governance professor keeps emphasizing that as IT personnel, we will need to have a much higher sense of integrity than most other fields bc we have access to SO MUCH SHIT. IT and tech industries are so under-regulated bc of how relatively new it all is and how slow the law moves. But people in charge of handling user data should keep in mind that this is data about Real People, and capitalizing off of it is a violation of privacy.
But tech giants don't care. They'll keep poking and prodding, trying to capitalize off of users' data in order to earn as much money as they can. Data regulations like GDPR exist, but they don't cover everyone, and tech giants are more of "Do First, ask forgiveness later". Or in this case, pay the fines later. Bc if they violate GDPR, they Will be paying fines. And maybe they'll even change the way they handle the data... for EU citizens.
The rest of us are fucked tho. Tech giants really don't care. They just view us as assets to profit off of.
#speculation nation#just thinking. i kinda hope my data governance professor brings this up on Tuesday.#i want to hear her thoughts about it.#but yeah im entering into a field that will grant me so much power within my organization(s)#thats where the integrity really matters on a personal scale. bc im not gonna end up running any tech giants.#but i Will be one of the IT guys who can access like. everything? in a company.#maybe not everything everything. depending on how well the company has their data system structured.#access controls and what have you. hopefully an average IT person wont see like. highly classified data and whatever.#but in a lot of companies IT ppl can just do Whatever.#another thing she taught in my data governance class is how to spot warning signs for insider threats.#aka ur fellow IT workers. or even just normal employees who arent following safety protocol as they should.#aactually it's wild how much of data privacy rides on the integrity of those involved.#kinda scary. people behind the scenes in the tech world have way too much power.#and so many of them dont treat that with the care that it deserves.
15 notes
·
View notes
Text
a character's self-deprication being what keeps them from being in a relationship can be really good but mostly when the self deprication is 1. justified and 2. only no longer an issue because their significant other is Into whatever they're angsting about
#random thoughts#writing ref#like 'i can't be with them because i've committed horrible atrocities and know only violence' and the SO is like 👀👀👀 please murder me#or like. one i really like is a dude who's like a hardcore submissive. can't get off any other way.#and he's just kind of assuming he'll be alone forever because yknow gender roles and whatnot#figures at best he'll have a sexless marriage#and then he meets the world's bitchiest woman <3#this is what i imagine clark kent and lois lane are like btw#idk. something about a big fat man. brick shithouse of a fella. being dominated by a very angry pixie woman#plus typically with that kind of setup the big reveal would be the woman *letting her guard down* and *submitting*#but i really like the idea of her letting her emotional walls down enough to let this man submit for her. to have someone reliant on her#like she's a business woman who's all work because she's been constantly disappointed in her dating life#because people try to ~get to know her~ and get her to ~let her guard down~ but like sorry she's just like this#she's the kind of woman who plays stardew valley with spreadsheets. runs that farm like the navy#she likes being in charge!!!#god the more i think about these two they're just becoming more and more autistic#they both like structure because the guy likes not making decisions and the gal doesn't like surprises#like the guy doesn't like making decisions on the spot and likes being guided through stuff#and he likes knowing that if he DOES do something wrong then there's a guarunteed result (safeword) which tells him to stop and change#and the gal likes being in control and hates surprises because it means she has to think up what to do on the fly with no data#she likes planning things and scenes make it so everything can go smoothly#she makes like. worldbuilding for her roleplay scenes. has a lore bible#both of them have to communicate effectively!!! NO ROOM FOR MISCOMMUNICATION#kink negotiation scene where they're both dressed in office casual. sitting at a table. they shake hands afterwards shksjakaka#i think they're like. i don't think they're dating. at least not yet#they're living together and having sex on a regular basis and would probably get married but i don't think they're dating#they don't kiss. i don't think she likes kissing on the mouth#they're like. best friends who fuck. queerplatonic. can people in queerplatonic relationships fuck?#god this got away from me
9 notes
·
View notes
Text
Just want to read a thread that mentions phones fitting in pockets to see if other ppl are actually living lifestyles w their giant ass phones u can only find nowadays or if everyones lying to me <- was pissing me off phone shopping again. Find out its reddit party line to go um women dont actually want clothes w pockets if they did theyd just Buy Them smh women be wanting their asses to look too good its all they care about 🙄 hey can i kill you?
#SURE LETS TALK ABT IF PROPOSED SOLUTIONS DONT SELL AS WELL AS MARKET DEMOS PROMISED THATS INTERESTING#BUT DO U LIVE IN A SOCIETY. i DO try to seek out brands that prioritize (WELL STRUCTURED!!!) pockets and cant fucking find em#And end up doing what reddit also condescendingly suggests which is buy mens jeans#Guess whats probably hard to collect data on. If ur just studying jean market availability by comparing mens jeans to womens jeans#Um. Who the fuck is buying which#And. The levels of. Spherical cow assumptions being made about how markets work kgjdhfifjsjd hey can i fucking kill you?#Anyways.#^ the boys jeans i have do p well but a lot of skirts and dressing w pockets i find#Are just made like shit they cant take any weight. Swhy. One reason why. I love a well strongly constructed waistband#Which you have to PAY MORE FOR!!!!!!!!!!!!!!!!!!
8 notes
·
View notes
Text
like the thing is some of terry pratchett's later books are sort of direct appeals to young people for example to have integrity and care for others and it's difficult to look at any of the books about vampires or fairies and not see that pratchett wanted to discuss the grist mill of neoliberalism
but like the truth is that granny weatherwax + tiffany aching both despaired of installing that integrity and care of others into their communities and only saw partial success with their methods. frequently no success. it was embittering, and that's part of why weatherwax is Like That
bc these fictional women couldn't understand, because pratchett himself didn't understand, that you don't need to Make People Better People to encourage them to care for every member of their communities, you just need to make taking care of everybody integral to the process of people living their lives. like we may never have total population compassion saturation or whatever but that doesn't matter bc it IS possible to arrange the world such that our processes for living support each other. you know
#do you remember when rincewind white saved all of china#i feel like i can hate on pratchett bc i did my time reading his fucking discography but at 30 most of what he has to offer me is ilke#okay#his works fuck like hell for people at some specific intersections of the world. perhaps in the structure of his stories there is a way int#the hearts of those people. yk. or something#i guess what i'm struggling with is that in order to reach people with logic and reason and so forth i have to reach them. metaphorically#mythologically. or something. bc they r not able to be persuaded yet by data. right? so okay. how do i get there. from here
2 notes
·
View notes
Text
What is Data Structure in Python?
Summary: Explore what data structure in Python is, including built-in types like lists, tuples, dictionaries, and sets, as well as advanced structures such as queues and trees. Understanding these can optimize performance and data handling.

Introduction
Data structures are fundamental in programming, organizing and managing data efficiently for optimal performance. Understanding "What is data structure in Python" is crucial for developers to write effective and efficient code. Python, a versatile language, offers a range of built-in and advanced data structures that cater to various needs.
This blog aims to explore the different data structures available in Python, their uses, and how to choose the right one for your tasks. By delving into Python’s data structures, you'll enhance your ability to handle data and solve complex problems effectively.
What are Data Structures?
Data structures are organizational frameworks that enable programmers to store, manage, and retrieve data efficiently. They define the way data is arranged in memory and dictate the operations that can be performed on that data. In essence, data structures are the building blocks of programming that allow you to handle data systematically.
Importance and Role in Organizing Data
Data structures play a critical role in organizing and managing data. By selecting the appropriate data structure, you can optimize performance and efficiency in your applications. For example, using lists allows for dynamic sizing and easy element access, while dictionaries offer quick lookups with key-value pairs.
Data structures also influence the complexity of algorithms, affecting the speed and resource consumption of data processing tasks.
In programming, choosing the right data structure is crucial for solving problems effectively. It directly impacts the efficiency of algorithms, the speed of data retrieval, and the overall performance of your code. Understanding various data structures and their applications helps in writing optimized and scalable programs, making data handling more efficient and effective.
Read: Importance of Python Programming: Real-Time Applications.
Types of Data Structures in Python
Python offers a range of built-in data structures that provide powerful tools for managing and organizing data. These structures are integral to Python programming, each serving unique purposes and offering various functionalities.
Lists
Lists in Python are versatile, ordered collections that can hold items of any data type. Defined using square brackets [], lists support various operations. You can easily add items using the append() method, remove items with remove(), and extract slices with slicing syntax (e.g., list[1:3]). Lists are mutable, allowing changes to their contents after creation.
Tuples
Tuples are similar to lists but immutable. Defined using parentheses (), tuples cannot be altered once created. This immutability makes tuples ideal for storing fixed collections of items, such as coordinates or function arguments. Tuples are often used when data integrity is crucial, and their immutability helps in maintaining consistent data throughout a program.
Dictionaries
Dictionaries store data in key-value pairs, where each key is unique. Defined with curly braces {}, dictionaries provide quick access to values based on their keys. Common operations include retrieving values with the get() method and updating entries using the update() method. Dictionaries are ideal for scenarios requiring fast lookups and efficient data retrieval.
Sets
Sets are unordered collections of unique elements, defined using curly braces {} or the set() function. Sets automatically handle duplicate entries by removing them, which ensures that each element is unique. Key operations include union (combining sets) and intersection (finding common elements). Sets are particularly useful for membership testing and eliminating duplicates from collections.
Each of these data structures has distinct characteristics and use cases, enabling Python developers to select the most appropriate structure based on their needs.
Explore: Pattern Programming in Python: A Beginner’s Guide.
Advanced Data Structures

In advanced programming, choosing the right data structure can significantly impact the performance and efficiency of an application. This section explores some essential advanced data structures in Python, their definitions, use cases, and implementations.
Queues
A queue is a linear data structure that follows the First In, First Out (FIFO) principle. Elements are added at one end (the rear) and removed from the other end (the front).
This makes queues ideal for scenarios where you need to manage tasks in the order they arrive, such as task scheduling or handling requests in a server. In Python, you can implement a queue using collections.deque, which provides an efficient way to append and pop elements from both ends.
Stacks
Stacks operate on the Last In, First Out (LIFO) principle. This means the last element added is the first one to be removed. Stacks are useful for managing function calls, undo mechanisms in applications, and parsing expressions.
In Python, you can implement a stack using a list, with append() and pop() methods to handle elements. Alternatively, collections.deque can also be used for stack operations, offering efficient append and pop operations.
Linked Lists
A linked list is a data structure consisting of nodes, where each node contains a value and a reference (or link) to the next node in the sequence. Linked lists allow for efficient insertions and deletions compared to arrays.
A singly linked list has nodes with a single reference to the next node. Basic operations include traversing the list, inserting new nodes, and deleting existing ones. While Python does not have a built-in linked list implementation, you can create one using custom classes.
Trees
Trees are hierarchical data structures with a root node and child nodes forming a parent-child relationship. They are useful for representing hierarchical data, such as file systems or organizational structures.
Common types include binary trees, where each node has up to two children, and binary search trees, where nodes are arranged in a way that facilitates fast lookups, insertions, and deletions.
Graphs
Graphs consist of nodes (or vertices) connected by edges. They are used to represent relationships between entities, such as social networks or transportation systems. Graphs can be represented using an adjacency matrix or an adjacency list.
The adjacency matrix is a 2D array where each cell indicates the presence or absence of an edge, while the adjacency list maintains a list of edges for each node.
See: Types of Programming Paradigms in Python You Should Know.
Choosing the Right Data Structure
Selecting the appropriate data structure is crucial for optimizing performance and ensuring efficient data management. Each data structure has its strengths and is suited to different scenarios. Here’s how to make the right choice:
Factors to Consider
When choosing a data structure, consider performance, complexity, and specific use cases. Performance involves understanding time and space complexity, which impacts how quickly data can be accessed or modified. For example, lists and tuples offer quick access but differ in mutability.
Tuples are immutable and thus faster for read-only operations, while lists allow for dynamic changes.
Use Cases for Data Structures:
Lists are versatile and ideal for ordered collections of items where frequent updates are needed.
Tuples are perfect for fixed collections of items, providing an immutable structure for data that doesn’t change.
Dictionaries excel in scenarios requiring quick lookups and key-value pairs, making them ideal for managing and retrieving data efficiently.
Sets are used when you need to ensure uniqueness and perform operations like intersections and unions efficiently.
Queues and stacks are used for scenarios needing FIFO (First In, First Out) and LIFO (Last In, First Out) operations, respectively.
Choosing the right data structure based on these factors helps streamline operations and enhance program efficiency.
Check: R Programming vs. Python: A Comparison for Data Science.
Frequently Asked Questions
What is a data structure in Python?
A data structure in Python is an organizational framework that defines how data is stored, managed, and accessed. Python offers built-in structures like lists, tuples, dictionaries, and sets, each serving different purposes and optimizing performance for various tasks.
Why are data structures important in Python?
Data structures are crucial in Python as they impact how efficiently data is managed and accessed. Choosing the right structure, such as lists for dynamic data or dictionaries for fast lookups, directly affects the performance and efficiency of your code.
What are advanced data structures in Python?
Advanced data structures in Python include queues, stacks, linked lists, trees, and graphs. These structures handle complex data management tasks and improve performance for specific operations, such as managing tasks or representing hierarchical relationships.
Conclusion
Understanding "What is data structure in Python" is essential for effective programming. By mastering Python's data structures, from basic lists and dictionaries to advanced queues and trees, developers can optimize data management, enhance performance, and solve complex problems efficiently.
Selecting the appropriate data structure based on your needs will lead to more efficient and scalable code.
#What is Data Structure in Python?#Data Structure in Python#data structures#data structure in python#python#python frameworks#python programming#data science
6 notes
·
View notes
Text
if i had a nickel for every time i turned to my childe and aventurine standees and whispered "i am better than you" today i would have two nickels which isn't a lot but it's weird that i did that twice
#zuri rambles#for context my recursive functions ran on the first try with no issues and typos#this assignment is literally just us writing recursive algorithms with different data structures#im on question 2. i've written 5 recursive questions so far. there are a total of 5 questions#also i solved a leetcode easy by implementing a stack without knowing what a stack is (im not caught up with the class lectures) and i-#-can't believe it??? i did that????? how??????????
4 notes
·
View notes
Text
trying to focus on my(online, untimed) final exam but my head is full of hiveswap. what the hell do jadebloods do after exile.
#ooc#what structure does the alternian government have? do they have physical records stored on some kind of bookhiveship? bookhivestation?#planet?#where do trials take place?#where does his honourable tyrrany come in#are alternian doccuments (off planet i mean) all based in the cloud?#and by the cloud i mean kept in physical servers that are accessed via colony/warships remotely#in my head im imagining a station where helmsmen are maintained and exchanged or stored. stored helms powering the empire's data servers#uuuuu#helmspa. not that i think it would be very spalike#but i do like to imagine helmsmen getting unplugged and bathed and rested every once in a while#washed up by their helmsmechanics#i imagine the mechanics socialize between ships but i also imagine most helmsmen are too drained to do much socialization#ANYWAY none of this is necessarily canon to foly's timeline im just brainstorming#i think a massive data storage space station would be cool#weapons development also. scienterrorists developing new helming technology
3 notes
·
View notes
Text
coding an inventory system with equippable items has me feeling like im an actual rocket scientist when in actual fact i just finally figured out why equipping function didn't work after scrolling down (i used the wrong variable in one single spot bc i wasnt paying attention)
#engineposting#its weird bc it feels SO good to finally have something fixed and functional#but it also makes me want to throw things when i realise the mistake was so simple#i swear i was trying to figure out what maths id done wrong for like 30 minutes. it was just a misnamed variableeee in the for looopppp#this is my first time ever making an inventory system tho so im pretty happy with it#i got equippable shit i got scrolling i got a stat block to the side i got item descriptions i got uhhh equipment changing ur stats#oh yeah baby#thank u data structure grids
4 notes
·
View notes
Text
I have to do like, 2 whole (small) programs and an investigation for today and I'm just sitting infront of my pc like
This shit crazy
#This is about Data Structure btw#One is technically finished#But I dont understand stacks fully so im struggling#The other one I just found a document explaining what to do while I was searching stuff for my research#So I hope I dont take long#We hitting the double whammy with this homework#EliGoRamble
5 notes
·
View notes
Note
���� you're also a math srimp
math shrimp!! 🤝🤝
#hi yes i love data structures and math specifically in the context of astrophysical problems and observations#i spent 4 years out of it but im slowly retraining my mental muscles for it!#i really would love to know :3 can dm me!!#one day ill be back to the glory days of applying multivariate calculus to galaxy datacubes in a programming environment and doing science#what kind of math things do you like?#shrimpmilf.txt#edit: fuck i forgot about topology and non euclidean spaces in a scientific context
3 notes
·
View notes
Text
Does anyone know enough about game design and development to give me some advice?
I'd like to know how realistic it would be to create a web browser 2D pixel art multiplayer game where players can customize rooms and explore them and chat together. Basically create a mix between habbo hotel and manyland.
And how realistic is it considering I'm not actually a developper and only use Python and SQL in my daily life? I did learn other languages but it was a while ago.
I have also never created a website though I know some people who could help me with that.
Anyway I'm a total beginner and don't even know what difficulty this project would be. Does anyone know?
#Mel rambles#game design#game development#game developers#web development#I don't even know what tags this community uses#I think I know how the game would work and how I'd structure the data#but I have never used a game engine so I genuinely have no idea how difficult the development would be#or even what my level is. apparently I'm pretty good at coding for someone who isn't a developper but is it enough for that project?
5 notes
·
View notes
Text
pdfs from other universities are CARRYING my ass through computer organization and architecture 😭😭😭 thank you university of washington and university of california irvine 😭😭😭😭😭 i may not be a student for either of these but trust that i am learning from them (instead of my own class 👁️👁️)
#unrelated but one of my hw questions were directly taken from one of these pdfs#so when i found out that it was a perfect match#well#can’t blame me for using a university’s resources they publically show#pdfs from other universities are goated frfr#i guess that really isn’t unrelated though? bc the pdfs carried me for it#Computer Org. and Arch. was supposed to be a blowoff class but I just got a… bad professor…#ironic bc i’m literally acing the Data Structures class that every cs major cries over#but i digress#ok but what’s really unrelated is that#i think it’s kinda neat how other places have a different naming/numbering system for basicallg the same course#although i can see that being annoying
4 notes
·
View notes
Text
spending so much time
normalizing two data structures so i can run a diff on them
so i can generate a plan to move a system between two states
fun/painful
eck
#programming#code#normalizing data structures like a good little dev#is this what it would be like to be a data eng?#oh my god i hope this isn't what my data eng friends' life is#aaaaaahhhhhh
1 note
·
View note