#Bubble Sort
Explore tagged Tumblr posts
Text
Bubble Sort In Java
Note that, Bubble Sort is not considered an efficient sorting algorithm in terms of performance, especially for large datasets. Its performance characteristics make it one of the least efficient sorting algorithms when compared to other commonly used sorting algorithms like Quick Sort, Merge Sort, and Heap Sort.
The key performance characteristics of Bubble Sort are as follows:
Time Complexity: The worst-case time complexity of Bubble Sort is O(n^2), where "n" is the number of elements in the list. This means that as the size of the input list grows, the number of comparisons and swaps increases quadratically. In the worst case, Bubble Sort needs to perform (n-1) passes, each requiring (n-1) comparisons, making it highly inefficient for large datasets.
Best-Case Time Complexity: The best-case time complexity occurs when the input list is already sorted. In this scenario, Bubble Sort still needs to pass through the list to determine that no swaps are needed, resulting in a best-case time complexity of O(n).
Average-Case Time Complexity: The average-case time complexity of Bubble Sort is also O(n^2). This is because it makes roughly the same number of comparisons and swaps as in the worst-case scenario for random or partially sorted data.
Space Complexity: Bubble Sort is an in-place sorting algorithm, meaning it doesn't require additional memory allocation for sorting. Its space complexity is O(1), indicating that it uses a constant amount of memory regardless of the input size.
0 notes
Text
Latihan Kode Program C++: Mengurutkan Angka dengan Algoritma Bubble Sort
Latihan kode program C++ kali ini akan membahas cara mengurutkan angka menggunakan algoritma bubble sort. Algoritma sorting sendiri menjadi materi standar dalam pembahasan materi algoritma di kampus-kampus IT. Soal Mengurutkan Angka dengan Algoritma Bubble Sort Buatlah kode program C++ untuk mengurutkan angka menggunakan algoritma bubble sort. Program meminta 1 nilai input untuk menentukan…
View On WordPress
#Algoritma#Algoritma Sorting#Array#Bahasa C#Belajar C#Bubble Sort#C++#Latihan Soal#Soal Algoritma#Sorting
0 notes
Text
"Nora doesn't know anything about the things she writes about" "aftg is terrible queer rep" "the queer characters in aftg are so problematic"
Idk guys maybe the book series abt problematic ppl set in 2006 and written in the mid 2010s shouldn't be expected to hold up against scrutiny of what we consider to be moral and correct now, in 2024
Idk tho, idk
#“nicky is a terrible person” bitch he not supposed to be some kind of perfect angel is he????#sry to burst ur bubble but gay men are actually capable of being horrible people just as much as straight men#“death of the author” how abt death of you#instigated by me#nora sakavic#aftg#all for the game#aftg hot takes#nicky hemmick#andrew minyard#kevin day#neil josten#nora knew exactly what she was doing and i will die on this hill#i am so so sick and tired of peoe acting like shes some sort of incompetent idiot who barely scraped together a plot#you do not have to stay in the fandom if you don't actually like the media#you can leave i promise#we dont really want you here
2K notes
·
View notes
Text
Moon 23: Lots of troubles to share!
PREVIOUS l NEXT
#warrior cats#clangen warrior cats#warriors oc#wc#wc oc#jcmoons#clangen#ok. so the RNG spared shy but I wanted her to have some sort of damage#and yes her eye is slightly lighter#I’d say she has more sun sensitivity in that eye mayhaps?#also I’m aware there’s no text in the bubbles I wrote this so many times and nothing felt good enough#this is a short moon because next moon is CHUNKY#5 pages I think#rip me
824 notes
·
View notes
Text
"And after the incident with the rose, he's been quite irritable and difficult."
"It's okay. I deal with difficult people all the time."
#khdr#kingdom hearts dark road#eraqus#kh vor#kingdom hearts#making kh art#You can consider this a sort of alternate take on my hourglass fanart#Using the rose metaphor I noticed a little while ago#Between Vor describing her situation as a 'bubble' and the game directly comparing Eraqus and the Beast#I have to imagine the metaphor was intentional but who knows#I don't know how to draw at this angle. Why did I do this.#khdr spoilers#ch tag: vo#ch tag: era
435 notes
·
View notes
Text
fucked up dickjay where they have a 24/7 roleplay that dick had molested jason when he was robin. they slip into it without thinking. they've been doing it for long enough that they have a whole series of intricate lore associated with it. events that never happened that they reference while fucking. that they reference even while just sitting on the couch next to each other. "remember how much fun we had that time bruce went out of town for two weeks and dropped you off with me? when i told you that you had no where else to go?" "remember how you tried to drown me in the tub? how you held me down until i gave in?"
#they both just roll with whatever the other person says no matter how vile it is#i think they should live together so that they have the time and circumstances to do it more often#none of it happened but their game about it all never stop. and at a certain point it feels real#they don't ever talk about it outside of doing it. there's no discussion of 'why is this fun for me?' 'what do i get out of this?'#bc that would break the bubble they're building around themselves.#these guys have never heard of a safeword or rack or anything of that sort. they're just playing pretend. how bad could that be?#dickjay#the actual amount of danger involved in the sex they're having should increase proportionally to the story they're co-creating#as it gets more dark so does their reality. but its all just for fun!
135 notes
·
View notes
Text
Descent.
The first of hopefully a couple fancomics for Hades! I love this game dearly, and I wanted to explore one of the in-game quotes a bit with this. This took me about a month or so of inconsistent work, and I'm pretty happy with it!!
Hope you enjoy :D Explanation in the tags
#the in-game quotes are specifically the first three speech bubbles on pg1 and the very last speech bubble on pg4#i found them almost kind of ominous because of what they seem to imply about what hades is having meg do#you can hear the quotes when you start a run as a part of one of those pre-run messages#also: given that this is set pre-canon#meg and zag have different designs to make them look younger#meg has fewer piercings and shorter hair#and zag is more covered like his dad's fashion tends to be#also i love achilles can you tell#replacement dad#anyway yeah idk the quote really seemed to imply that hades was trying to make zag “a man” in some fashion#which based on his backstory i assumed thatd be some sort of test of will or strength#thus. this comic#poor zag#he deserves better#hades game#hades game fanart#hades supergiant#hades zagreus#zagreus#hades megaera#hades achilles#achilles#megaera#ALSO i know hand lettering is an amateur move but i couldnt find any good fonts that i liked#so hand lettering it was
156 notes
·
View notes
Text
decided to roll with it
#chiara when she gets pregnant because I tested a new ww animation ONCE. girl#I kind of love being able to 'tell a story' (sort of) through these edits because when I play I always have really detailed storylines#and I really like being able to convey some of it#but I need to get better at editing the story bubble thingies ;-;#I rly love the vibes of this house it's like countryside cosy#her tiny bump is kind of cute#october save#cw pregnancy#chiara#ren
190 notes
·
View notes
Text
ladies, I need to wander despondently across a foggy moor asap
#*this also applies to the not-ladies among us#y'all deserve a good pensive ramble across a moor in a really cool greatcoat#just be sure you don't turn it into anything vigorous#this is not the time to be Aragorn we are looking for Jonathan Harker pre-Dracula at best#in regards to the moor: a wind-swept cliffside would also be suffice#it would NOT do wonders for my health of course but hey#fortunately the bestie and I have plans to go hiking next weekend and if we don't have another option I'm gonna beg for the hemlock trail#I'd also take the cedar springs#I just need Nature that isn't the beach#in other news I am happy to report that the week is smoothing itself out somewhat#we're all still on edge but it's not as bad as it was and we've effectively kicked loose the pebble in the the shoe#my darling sister sent me a gift and told me to treat myself so I may get bubble tea after work#and I begged for tomorrow off so I can sleep and then spend the day coughing in peace#(this is such a bizarre cold. I didn't get any of the preliminaries outside of some sneezing)#(and then it was straight to my chest. not even a sore throat first! usually I get a lot of build up and can often get ahead of a bad cough#(thankfully my nose is not congested. I suppose that's the trade-off)#so I'll sleep in and then I may sort some of the filing I'm taking home from the office#by then I'll likely have completely lost my voice#AND I have ingredients for chili because for once I planned ahead. might even make some of my favorite rolls as well.#and then next week...I start a second job#(super simple and it's 2 hours max every evening. once I figure it out it could be an hour tops unless I decide to take it slow)#(the pay is great for the job and it'll give me something to do instead of just...I dunno...reading through the winter I suppose)#(sorry my head is in such a fog I don't know how I'm surviving work)#mine#greatest hits
900 notes
·
View notes
Text

@waxerboilmonth (image prompt reference below)
David Bird

#star wars#clone trooper waxer#waxerboilmonth#image prompt#bubble#digital art#sw art#sw tcw#clone trooper boil#snow globe#sort of#waxer is trapped in a little ice bubble thing you see#waxerboilmonth2025#march 2025#daily art#waxer and boil
82 notes
·
View notes
Text
In love with the idea of captain marvel being Billy's imaginary friend. Like, it'd be so easy. Early depictions had them as almost fully separate people sometimes, like one soul with two minds, rather than just two filters like we mostly see now.
But imagine a Billy down on his luck, hurt and hiding from police and criminals alike, daydreaming the hours away as children do, taking inspiration from all the superheroes rising to fame, making little stories to play out his dreams of saving the world with a generic action doll he found while dumpster diving once. Most of the paint's rubbed off.
Red's his favourite colour, his comfiest jumper is a bright ruby even after all the grime and washes. Gold, too, it's shiny and warmer than silver! A hero cape is a must, big and eye catching! And he can fly, of course, like superman, and in his daydreams, when he's sore and frustrated after a long day's grind, his superhero is smart enough and knows all the right words to get the bullies to stop without resorting to fighting.
His superhero fantasy is one he spends a lot of time on, the first one he goes for when struggling to sleep at night, and he can picture it so clearly. Captain marvel is big and bright and kind, strong enough to lift the boxes for the old lady up the road who's moving all by himself, fast enough to catch Jamie who fell out of the tree on Saturday and broke his leg and couldn't come to class for weeks. He appears at the entrance to alleys when Billy is cornered, he steps up behind to cover for him when he gets caught shoplifting, he sits at the bus stop with him when it's pouring rain and the right bus doesn't seem to be coming.
And then the wizard comes, or rather whisks him away, and like a magician from a fairytale breathes life into his imaginary friend until Billy feels thrice his size and a million times more invincible.
From then on, captain marvel is a real hero, just like Billy is a real boy, and as one they save the whole city, and then the whole world, and get cats down from trees and help Mrs Victoria move the last of her boxes and she gives them a pinch in the cheek and cookies for the road and sometimes it hurts but it's so much better than he imagined.
#dc comics#captain marvel#dc captain marvel#shazam#billy batson#imaginary friend#imaginary friend au#Billy's great because you can give him the most buck wild adventures with the most self indulgent plots and it makes perfect sense#Batman and superman are out here having mental health crisis no.528 and marvels away having dance offs with gnomes#Billy would fit perfectly into gravity falls he really would#Anyway imaginary friend au is near and dear because it encapsulates that sort of safe fantasy for change and companion ship#And a protective imaginary friend brought to life is going to be just a fascinating character no matter what#And it's the perfect cover for non imaginary cap anyway. Why does he prioritise this kid over everything despite having never mentioned him#Imaginary friends always have to care for their creator! But you can't expect an imaginary friend to do your taxes!#Why is cap so eternally kind and bubbly and a bit childish? That's because his creator is a kid! Duh!#This particular imaginary friend just so happens to have encountered magic and is now real enough to play basketball with asteroids.#He's strong enough to match superman but it's fine he's got a child's heart and an unending protectiveness for humanity.#Just don't try anything with the kid or you're toast.#I love the jl needing to save/help Billy in some way and cap; who's practically the jls puppy mascot at this point#Is just shamelessly and unrepentantly possessive of Billy while being openly wrapped around his finger. Number one fan#Like 'he's the specialist boy and if you don't clap for him I'm going to blow this whole building up' type#Have you read Split on ao3 it's like that. Cap is the most unaffiliated person on the team and then bam Billy is number 1 priority 100%#Go read split if you haven't 10/10#Like it never crosses caps mind to hinder or harm Billy he is Devoted. Platonic God/worshipper except the deity in question is an 11yo#And the worshipper is the closest thing to a deity without being one you can get in dc.#But like a healthy relationship lmao.#It's a soul deep claim with total freedom on both sides and they teach each other love and they're the same person#AUGH
515 notes
·
View notes
Text
remember in parasite when the rich mom is interviewing ki-jung as an art therapist or whatever for her kid and you sort of expect that ki-jung will either be overly humble and ingratiating or overly arrogant and forceful but she suddenly shifts into this remote yet brilliant and inexorable persona that makes the rich mom gasp and sob and you're like. how long has ki-jung been lying awake at night imagining being jessica only child illinois chicago
#parasite#movies#no reason in particular. i am just so taken with that scene#i was thinking about parasite because of the part where chungsook is like 'yeah [the rich mom] is super nice. and i would be too#if i never had to work. or worry about anything. i'd be the nicest person ever. i'd be nicer than her'#and the rest of the family is sort of like mmhmm. yeah probably. too bad we'll never know#ki-jung in the bathtub full of bubbles like lumpy space princess. 'i deserve this'#psir
48 notes
·
View notes
Text

I altered the speech bubble from the original but I stand by that sentiment too ❤️🖤
#international no diet day#fuck fatphobia#riots not diets#fat liberation#fatphobia#fatphobic#ancom#anarchocommunism#anarcho communist#anarchocommunist#i made this#sort of#not really#someone else drew it#I just put a different speech bubble
33 notes
·
View notes
Text
I was watching someone's soundtrack reaction to the Wicked movie when Defying Gravity popped up and they said this:
"From Glinda's perspective she's like 'Why would you not just put on a face? Do you have to say everything you feel, and do everything you stand by?'"
And I was just like: There! There! You broke Glinda down to her bare bones! Everything about her is a performance meant to make the majority of people adore her! She's a bubbly blonde with a pretty face. No one expects her to be anything else. Despite this though, Glinda is honestly the more strategic and less impulsive of the two. Elphaba constantly has so much passion just bursting forth. She's reactionary. And the hard part about Defying Gravity is that for a moment Glinda gets swept up in that passion. She cares for Elphie so much and of course she would love to go with her, look out for her, because Elphie's right about a lot of things, and they would be an unbeatable team.
But once Glinda stops to think, once she's able to truly grasp the severity of what Elphie's suggesting, all she can see is two young women going up against someone who controls perception throughout the whole country. She sees that they don't have a plan. They don't have anywhere to go. She sees them both having to run and run and run. She can't be as impulsive as Elphie. She can't even be as passionate. Because Glinda has buried so much of herself behind a facade that to be truly exposed for what she really is feels like it would be a death sentence for her.
Glinda is a coward in all the ways that truly matter.
And that's before we even get into Act 2, where the woman is truly just a person shaped by every regret and repressed feeling she's ever had hiding behind a pearly white smile and a dulcet giggle. She's the new puppet on a string, the new plaything for the propaganda machine and she couldn't be happier, couldn't be lovelier.
And when she does see Elphie again, she feels everything. She's so happy to see her alive, she's so mad at her for leaving, she's so defensive because she's ashamed of the part she's played in it all, of being encouraging to the people of Oz.
She hates her role. She hates the people eating up lies about her Elphie. She hates herself for letting her need to be admired and adored, her fear of losing all of that, keep her from the one person she truly ever loved with all her heart.
#wicked#wicked movie#elphaba thropp#galinda upland#glinda upland#this isn't about gelphie#but it also sort of is#jonrepeat was the youtuber btw#spoilers for the movie only people#spoilers#I freakin love Glinda in Wicked#she's so fascinating#because she suffers a little bit from the same thing as Elle Woods in Legally Blonde#people underestimate her because she's blonde and bubbly#but Glinda is actually so perceptive of other peoples perceptions#she figures Elphie out so quickly#'of course she cares she just pretends not to'#she knows how to play the game#because it's play or die for her#until...
54 notes
·
View notes
Text

Instead of working on artfight references (which i should be doing) here's @basil-does-arttt's Scwhalbe
#i can confidently say i did not do her justice she should be hotter than i drew her#maybe its that its just a static bust idunno#i'm not done btw after im done with refs schwalbes coming back#i want to do actual poses im half-decent at poses#I would have done poses except i was really happy with the bust and how it looks after i redesigned how i draw them a bit#but ill do poses next time#anyhoo she likes cats so i threw in cat#also random cotangent it occured to me schwalbes are basically polar opposites to kasuars#theyre reserved‚ introverted‚ heal people‚ and expensive#kasuars are rowdy‚ social‚ kill people‚ and cheaper than dry dirt#schwalbes are sort of germaphobes and kasuars will try to pet actually irradiated possibly rabid wild dogs#but idk somehow i think they'd get along maybe share a smoke#alas all im doing for now is the catsuar cameo#i dont know if people can read the thought bubbles cause tumblr may obliterate the image quality#it reads “pollen....that fucking eule....” and next one is “blep”#oh i guess something that kasuars and schwalbes do have in common#is theyre slowly ridden down by the horrors since schwalbe works in a morgue/hostpital and kasuars work in moreviolentmorgue/trenchgraves#theyre both quick to degrade#anyway i love schwalbes#hope i did her (a reasonable amount of) justice (still shoulda drawn her hotter) as always lemme know if you want this gone#and also basil if you dont do pinup fanservice I sure as blep will#(with your permission gah)#i can take schwalbe#-in a fight? probably. Was I talking about fights? good question#signalis#signalis oc#signalis fanart#schwalbe#schwalbe signalis#jay art
31 notes
·
View notes
Text
New headcanon.
That Diluc and Crepus are alike in a lot of ways and I get the impression that Crepus also lived vicariously through Diluc in terms of “I couldn’t be a knight so you go do that” even if he may have had some reservations with the Knights himself but wouldn’t wanna alienate them because of his kids or because of business reasons.
That Crepus and Varka have a begrudging mutual respect for each other but do not agree with each other’s tactics.
Crepus, like later Diluc, finds the knights inefficient. That he was working to bring down the Fatui in his own way secretly. There is some underground vigilante anti-Fatui group that Diluc later joined because he has contacts in Mond when he gets back.
Diluc is a kid and delluded into thinking the Knights are perfect and Crepus doesn’t wanna crush his dreams.
Then reality happens.
That Diluc has noticed some corruption already and has his reservations and annoyances. That that night was his final straw. That he’s relieved to be out of the Knights but feels like he let his father down but also has a weird feeling that he did the right thing by him.
And that he later learns more about the underground efforts and just how stupid the knights are being and that diplomacy doesn’t solve everything.
But he doesn’t wanna alienate them too much because of his begrudging respect for Kaeya.
And also he’s annoyed and slightly jealous that Kaeya took his position.
He secretly wishes Kaeya would leave but if he told Kaeya everything he knows it would destroy him. Or he just wouldn’t listen.
Or that Kaeya does know and wants to change things from the inside.
Or he stays because he thinks that’s what Crepus wanted and actually sees Diluc as disrespecting their father’s wishes.
Or Kaeya stays because the knights treated HIM well, and he doesn’t have any other family left. They ARE his family. His dad abandoned him and he doesn’t know where his mom is (if shes alive). If he has other siblings they’re probably working for the Order. His adoptive dad died and his adoptive brother views him as a pushover for staying perhaps.) Let’s also not forget that Kaeya was probably pressured into doing whatever he was forced to do as a kid as being an heir to the Abyss Order basically. He probably doesn’t know HOW to say no or stand up against institutional injustice. Anything is better than where he came from. So he mostly just distances himself from the Knights by hunting treasure hoarders for fun and gathering intel because his position is literally useless.
I also think Jean’s hands are tied because she’s also barely legal and has too much pressure and is probably going off some some handbook and can’t reorganize things too much to not piss of Varka when he gets back. Plus they’re short-staffed. It’s very likely Varka groomed Jean in some way to succeed him and just put way too much pressure on this kid so now all she knows is how to work. Yeah I don’t like Varka lol.
For Kaeya it’s like “don’t bite the hand that feeds”. Kaeya leaving the knights would lose him EVERYTHING and he cannot risk that. There’s also a real chance that Varka knows about his past and if he leaves, he would become a target due to him being potentially dangerous.
It’s just a big mess all around and Ragbros+Jean are dysfunctional adults that had unrealistic pressures put on them as kids.
#pressure#Ragbros#Jean#Genshin#kaeya#Diluc#Crepus#Varka#bad parenting lol#let kids be kids#Crepus meant well but don’t do that#crap hit the fan#literally none of them know how to adult properly#they are literally high functioning but close to a complete breakdown#Jean has some sort of ocd#Diluc is def autistic and left his dream job because injustice#kaeya literalkt uses alcohol to cope like that’s not healthy bro#seriously Mondstandt needs a therapist#no a bunch of nuns don’t count#Amber would make a good therapist actually#she’s so bubbly and sweet#but also seems like she could listen to peoples problems#and she lost her grandfather too so she gets it#seriously where tf is Varka#bro you can’t take all the horses#guy is sus#Varka and captitano are the same person jk#but dude is either involved in some Fatui shit or just lets them do whatever#he’s getting bribed#or incomptient
72 notes
·
View notes