Visual Studio .NET, Windows ve Web uygulamalarını geliştirmek için bir ortamdır.En büyük özelliklerinden birisi IDE (Integrated Development Environment-Tümleşik Geliştirme Ortamı) dediğimiz ortak bir uygulama geliştirme platformu sunmasıdır. Visual Basic .NET, uygulamalarınız için kullanacağınız dillerden sadece biridir. Gerçekte Visual Studio .NET birçok dile ev sahipliği yapacak şekilde tasarlandı ve birçok firma, Visual Studio .NET içerisindeki tümleşik birçok dille çalışıyor. İster C#, J#, C++ ile uygulama geliştirin, ister Visual Basic .NET ile; kullanacağınız en etkin ve ortak uygulama geliştirme platformu Visual Studio .NET olacaktır.Öyleyse Visual Studio. NET ile diğer programlama dilleri arasındaki fark nedir?
Visual Studio .NET, Windows ve Web uygulamalarını geliştirmek için bir ortamdır.En büyük özelliklerinden birisi IDE (Integrated Development Environment-Tümleşik Geliştirme Ortamı) dediğimiz ortak bir uygulama geliştirme platformu sunmasıdır. Visual Basic .NET, uygulamalarınız için kullanacağınız dillerden sadece biridir. Gerçekte Visual Studio .NET birçok dile ev sahipliği yapacak şekilde tasarlandı ve birçok firma, Visual Studio .NET içerisindeki tümleşik birçok dille çalışıyor. İster C#, J#, C++ ile uygulama geliştirin, ister Visual Basic .NET ile; kullanacağınız en etkin ve ortak uygulama geliştirme platformu Visual Studio .NET olacaktır.Öyleyse Visual Studio. NET ile diğer programlama dilleri arasındaki fark nedir?
2024 State of Marketing Report – by HubspotMarius Sescu
https://www.hubspot.com/state-of-marketing
· Scaling relationships and proving ROI
· Social media is the place for search, sales, and service
· Authentic influencer partnerships fuel brand growth
· The strongest connections happen via call, click, chat, and camera.
· Time saved with AI leads to more creative work
· Seeking: A single source of truth
· TLDR; Get on social, try AI, and align your systems.
· More human marketing, powered by robots
ChatGPT is a revolutionary addition to the world since its introduction in 2022. A big shift in the sector of information gathering and processing happened because of this chatbot. What is the story of ChatGPT? How is the bot responding to prompts and generating contents? Swipe through these slides prepared by Expeed Software, a web development company regarding the development and technical intricacies of ChatGPT!
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
The realm of product design is a constantly changing environment where technology and style intersect. Every year introduces fresh challenges and exciting trends that mold the future of this captivating art form. In this piece, we delve into the significant trends set to influence the look and functionality of product design in the year 2024.
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
Mental health has been in the news quite a bit lately. Dozens of U.S. states are currently suing Meta for contributing to the youth mental health crisis by inserting addictive features into their products, while the U.S. Surgeon General is touring the nation to bring awareness to the growing epidemic of loneliness and isolation. The country has endured periods of low national morale, such as in the 1970s when high inflation and the energy crisis worsened public sentiment following the Vietnam War. The current mood, however, feels different. Gallup recently reported that national mental health is at an all-time low, with few bright spots to lift spirits.
To better understand how Americans are feeling and their attitudes towards mental health in general, ThinkNow conducted a nationally representative quantitative survey of 1,500 respondents and found some interesting differences among ethnic, age and gender groups.
Technology
For example, 52% agree that technology and social media have a negative impact on mental health, but when broken out by race, 61% of Whites felt technology had a negative effect, and only 48% of Hispanics thought it did.
While technology has helped us keep in touch with friends and family in faraway places, it appears to have degraded our ability to connect in person. Staying connected online is a double-edged sword since the same news feed that brings us pictures of the grandkids and fluffy kittens also feeds us news about the wars in Israel and Ukraine, the dysfunction in Washington, the latest mass shooting and the climate crisis.
Hispanics may have a built-in defense against the isolation technology breeds, owing to their large, multigenerational households, strong social support systems, and tendency to use social media to stay connected with relatives abroad.
Age and Gender
When asked how individuals rate their mental health, men rate it higher than women by 11 percentage points, and Baby Boomers rank it highest at 83%, saying it’s good or excellent vs. 57% of Gen Z saying the same.
Gen Z spends the most amount of time on social media, so the notion that social media negatively affects mental health appears to be correlated. Unfortunately, Gen Z is also the generation that’s least comfortable discussing mental health concerns with healthcare professionals. Only 40% of them state they’re comfortable discussing their issues with a professional compared to 60% of Millennials and 65% of Boomers.
Race Affects Attitudes
As seen in previous research conducted by ThinkNow, Asian Americans lag other groups when it comes to awareness of mental health issues. Twenty-four percent of Asian Americans believe that having a mental health issue is a sign of weakness compared to the 16% average for all groups. Asians are also considerably less likely to be aware of mental health services in their communities (42% vs. 55%) and most likely to seek out information on social media (51% vs. 35%).
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
This article is all about what AI trends will emerge in the field of creative operations in 2024. All the marketers and brand builders should be aware of these trends for their further use and save themselves some time!
A report by thenetworkone and Kurio.
The contributing experts and agencies are (in an alphabetical order): Sylwia Rytel, Social Media Supervisor, 180heartbeats + JUNG v MATT (PL), Sharlene Jenner, Vice President - Director of Engagement Strategy, Abelson Taylor (USA), Alex Casanovas, Digital Director, Atrevia (ES), Dora Beilin, Senior Social Strategist, Barrett Hoffher (USA), Min Seo, Campaign Director, Brand New Agency (KR), Deshé M. Gully, Associate Strategist, Day One Agency (USA), Francesca Trevisan, Strategist, Different (IT), Trevor Crossman, CX and Digital Transformation Director; Olivia Hussey, Strategic Planner; Simi Srinarula, Social Media Manager, The Hallway (AUS), James Hebbert, Managing Director, Hylink (CN / UK), Mundy Álvarez, Planning Director; Pedro Rojas, Social Media Manager; Pancho González, CCO, Inbrax (CH), Oana Oprea, Head of Digital Planning, Jam Session Agency (RO), Amy Bottrill, Social Account Director, Launch (UK), Gaby Arriaga, Founder, Leonardo1452 (MX), Shantesh S Row, Creative Director, Liwa (UAE), Rajesh Mehta, Chief Strategy Officer; Dhruv Gaur, Digital Planning Lead; Leonie Mergulhao, Account Supervisor - Social Media & PR, Medulla (IN), Aurelija Plioplytė, Head of Digital & Social, Not Perfect (LI), Daiana Khaidargaliyeva, Account Manager, Osaka Labs (UK / USA), Stefanie Söhnchen, Vice President Digital, PIABO Communications (DE), Elisabeth Winiartati, Managing Consultant, Head of Global Integrated Communications; Lydia Aprina, Account Manager, Integrated Marketing and Communications; Nita Prabowo, Account Manager, Integrated Marketing and Communications; Okhi, Web Developer, PNTR Group (ID), Kei Obusan, Insights Director; Daffi Ranandi, Insights Manager, Radarr (SG), Gautam Reghunath, Co-founder & CEO, Talented (IN), Donagh Humphreys, Head of Social and Digital Innovation, THINKHOUSE (IRE), Sarah Yim, Strategy Director, Zulu Alpha Kilo (CA).
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
The search marketing landscape is evolving rapidly with new technologies, and professionals, like you, rely on innovative paid search strategies to meet changing demands.
It’s important that you’re ready to implement new strategies in 2024.
Check this out and learn the top trends in paid search advertising that are expected to gain traction, so you can drive higher ROI more efficiently in 2024.
You’ll learn:
- The latest trends in AI and automation, and what this means for an evolving paid search ecosystem.
- New developments in privacy and data regulation.
- Emerging ad formats that are expected to make an impact next year.
Watch Sreekant Lanka from iQuanti and Irina Klein from OneMain Financial as they dive into the future of paid search and explore the trends, strategies, and technologies that will shape the search marketing landscape.
If you’re looking to assess your paid search strategy and design an industry-aligned plan for 2024, then this webinar is for you.
5 Public speaking tips from TED - Visualized summarySpeakerHub
From their humble beginnings in 1984, TED has grown into the world’s most powerful amplifier for speakers and thought-leaders to share their ideas. They have over 2,400 filmed talks (not including the 30,000+ TEDx videos) freely available online, and have hosted over 17,500 events around the world.
With over one billion views in a year, it’s no wonder that so many speakers are looking to TED for ideas on how to share their message more effectively.
The article “5 Public-Speaking Tips TED Gives Its Speakers”, by Carmine Gallo for Forbes, gives speakers five practical ways to connect with their audience, and effectively share their ideas on stage.
Whether you are gearing up to get on a TED stage yourself, or just want to master the skills that so many of their speakers possess, these tips and quotes from Chris Anderson, the TED Talks Curator, will encourage you to make the most impactful impression on your audience.
See the full article and more summaries like this on SpeakerHub here: https://speakerhub.com/blog/5-presentation-tips-ted-gives-its-speakers
See the original article on Forbes here:
http://www.forbes.com/forbes/welcome/?toURL=http://www.forbes.com/sites/carminegallo/2016/05/06/5-public-speaking-tips-ted-gives-its-speakers/&refURL=&referrer=#5c07a8221d9b
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
Everyone is in agreement that ChatGPT (and other generative AI tools) will shape the future of work. Yet there is little consensus on exactly how, when, and to what extent this technology will change our world.
Businesses that extract maximum value from ChatGPT will use it as a collaborative tool for everything from brainstorming to technical maintenance.
For individuals, now is the time to pinpoint the skills the future professional will need to thrive in the AI age.
Check out this presentation to understand what ChatGPT is, how it will shape the future of work, and how you can prepare to take advantage.
A brief introduction to DataScience with explaining of the concepts, algorithms, machine learning, supervised and unsupervised learning, clustering, statistics, data preprocessing, real-world applications etc.
It's part of a Data Science Corner Campaign where I will be discussing the fundamentals of DataScience, AIML, Statistics etc.
Time Management & Productivity - Best PracticesVit Horky
Here's my presentation on by proven best practices how to manage your work time effectively and how to improve your productivity. It includes practical tips and how to use tools such as Slack, Google Apps, Hubspot, Google Calendar, Gmail and others.
The six step guide to practical project managementMindGenius
The six step guide to practical project management
If you think managing projects is too difficult, think again.
We’ve stripped back project management processes to the
basics – to make it quicker and easier, without sacrificing
the vital ingredients for success.
“If you’re looking for some real-world guidance, then The Six Step Guide to Practical Project Management will help.”
Dr Andrew Makar, Tactical Project Management
2024 State of Marketing Report – by HubspotMarius Sescu
https://www.hubspot.com/state-of-marketing
· Scaling relationships and proving ROI
· Social media is the place for search, sales, and service
· Authentic influencer partnerships fuel brand growth
· The strongest connections happen via call, click, chat, and camera.
· Time saved with AI leads to more creative work
· Seeking: A single source of truth
· TLDR; Get on social, try AI, and align your systems.
· More human marketing, powered by robots
ChatGPT is a revolutionary addition to the world since its introduction in 2022. A big shift in the sector of information gathering and processing happened because of this chatbot. What is the story of ChatGPT? How is the bot responding to prompts and generating contents? Swipe through these slides prepared by Expeed Software, a web development company regarding the development and technical intricacies of ChatGPT!
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
The realm of product design is a constantly changing environment where technology and style intersect. Every year introduces fresh challenges and exciting trends that mold the future of this captivating art form. In this piece, we delve into the significant trends set to influence the look and functionality of product design in the year 2024.
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
Mental health has been in the news quite a bit lately. Dozens of U.S. states are currently suing Meta for contributing to the youth mental health crisis by inserting addictive features into their products, while the U.S. Surgeon General is touring the nation to bring awareness to the growing epidemic of loneliness and isolation. The country has endured periods of low national morale, such as in the 1970s when high inflation and the energy crisis worsened public sentiment following the Vietnam War. The current mood, however, feels different. Gallup recently reported that national mental health is at an all-time low, with few bright spots to lift spirits.
To better understand how Americans are feeling and their attitudes towards mental health in general, ThinkNow conducted a nationally representative quantitative survey of 1,500 respondents and found some interesting differences among ethnic, age and gender groups.
Technology
For example, 52% agree that technology and social media have a negative impact on mental health, but when broken out by race, 61% of Whites felt technology had a negative effect, and only 48% of Hispanics thought it did.
While technology has helped us keep in touch with friends and family in faraway places, it appears to have degraded our ability to connect in person. Staying connected online is a double-edged sword since the same news feed that brings us pictures of the grandkids and fluffy kittens also feeds us news about the wars in Israel and Ukraine, the dysfunction in Washington, the latest mass shooting and the climate crisis.
Hispanics may have a built-in defense against the isolation technology breeds, owing to their large, multigenerational households, strong social support systems, and tendency to use social media to stay connected with relatives abroad.
Age and Gender
When asked how individuals rate their mental health, men rate it higher than women by 11 percentage points, and Baby Boomers rank it highest at 83%, saying it’s good or excellent vs. 57% of Gen Z saying the same.
Gen Z spends the most amount of time on social media, so the notion that social media negatively affects mental health appears to be correlated. Unfortunately, Gen Z is also the generation that’s least comfortable discussing mental health concerns with healthcare professionals. Only 40% of them state they’re comfortable discussing their issues with a professional compared to 60% of Millennials and 65% of Boomers.
Race Affects Attitudes
As seen in previous research conducted by ThinkNow, Asian Americans lag other groups when it comes to awareness of mental health issues. Twenty-four percent of Asian Americans believe that having a mental health issue is a sign of weakness compared to the 16% average for all groups. Asians are also considerably less likely to be aware of mental health services in their communities (42% vs. 55%) and most likely to seek out information on social media (51% vs. 35%).
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
This article is all about what AI trends will emerge in the field of creative operations in 2024. All the marketers and brand builders should be aware of these trends for their further use and save themselves some time!
A report by thenetworkone and Kurio.
The contributing experts and agencies are (in an alphabetical order): Sylwia Rytel, Social Media Supervisor, 180heartbeats + JUNG v MATT (PL), Sharlene Jenner, Vice President - Director of Engagement Strategy, Abelson Taylor (USA), Alex Casanovas, Digital Director, Atrevia (ES), Dora Beilin, Senior Social Strategist, Barrett Hoffher (USA), Min Seo, Campaign Director, Brand New Agency (KR), Deshé M. Gully, Associate Strategist, Day One Agency (USA), Francesca Trevisan, Strategist, Different (IT), Trevor Crossman, CX and Digital Transformation Director; Olivia Hussey, Strategic Planner; Simi Srinarula, Social Media Manager, The Hallway (AUS), James Hebbert, Managing Director, Hylink (CN / UK), Mundy Álvarez, Planning Director; Pedro Rojas, Social Media Manager; Pancho González, CCO, Inbrax (CH), Oana Oprea, Head of Digital Planning, Jam Session Agency (RO), Amy Bottrill, Social Account Director, Launch (UK), Gaby Arriaga, Founder, Leonardo1452 (MX), Shantesh S Row, Creative Director, Liwa (UAE), Rajesh Mehta, Chief Strategy Officer; Dhruv Gaur, Digital Planning Lead; Leonie Mergulhao, Account Supervisor - Social Media & PR, Medulla (IN), Aurelija Plioplytė, Head of Digital & Social, Not Perfect (LI), Daiana Khaidargaliyeva, Account Manager, Osaka Labs (UK / USA), Stefanie Söhnchen, Vice President Digital, PIABO Communications (DE), Elisabeth Winiartati, Managing Consultant, Head of Global Integrated Communications; Lydia Aprina, Account Manager, Integrated Marketing and Communications; Nita Prabowo, Account Manager, Integrated Marketing and Communications; Okhi, Web Developer, PNTR Group (ID), Kei Obusan, Insights Director; Daffi Ranandi, Insights Manager, Radarr (SG), Gautam Reghunath, Co-founder & CEO, Talented (IN), Donagh Humphreys, Head of Social and Digital Innovation, THINKHOUSE (IRE), Sarah Yim, Strategy Director, Zulu Alpha Kilo (CA).
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
The search marketing landscape is evolving rapidly with new technologies, and professionals, like you, rely on innovative paid search strategies to meet changing demands.
It’s important that you’re ready to implement new strategies in 2024.
Check this out and learn the top trends in paid search advertising that are expected to gain traction, so you can drive higher ROI more efficiently in 2024.
You’ll learn:
- The latest trends in AI and automation, and what this means for an evolving paid search ecosystem.
- New developments in privacy and data regulation.
- Emerging ad formats that are expected to make an impact next year.
Watch Sreekant Lanka from iQuanti and Irina Klein from OneMain Financial as they dive into the future of paid search and explore the trends, strategies, and technologies that will shape the search marketing landscape.
If you’re looking to assess your paid search strategy and design an industry-aligned plan for 2024, then this webinar is for you.
5 Public speaking tips from TED - Visualized summarySpeakerHub
From their humble beginnings in 1984, TED has grown into the world’s most powerful amplifier for speakers and thought-leaders to share their ideas. They have over 2,400 filmed talks (not including the 30,000+ TEDx videos) freely available online, and have hosted over 17,500 events around the world.
With over one billion views in a year, it’s no wonder that so many speakers are looking to TED for ideas on how to share their message more effectively.
The article “5 Public-Speaking Tips TED Gives Its Speakers”, by Carmine Gallo for Forbes, gives speakers five practical ways to connect with their audience, and effectively share their ideas on stage.
Whether you are gearing up to get on a TED stage yourself, or just want to master the skills that so many of their speakers possess, these tips and quotes from Chris Anderson, the TED Talks Curator, will encourage you to make the most impactful impression on your audience.
See the full article and more summaries like this on SpeakerHub here: https://speakerhub.com/blog/5-presentation-tips-ted-gives-its-speakers
See the original article on Forbes here:
http://www.forbes.com/forbes/welcome/?toURL=http://www.forbes.com/sites/carminegallo/2016/05/06/5-public-speaking-tips-ted-gives-its-speakers/&refURL=&referrer=#5c07a8221d9b
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
Everyone is in agreement that ChatGPT (and other generative AI tools) will shape the future of work. Yet there is little consensus on exactly how, when, and to what extent this technology will change our world.
Businesses that extract maximum value from ChatGPT will use it as a collaborative tool for everything from brainstorming to technical maintenance.
For individuals, now is the time to pinpoint the skills the future professional will need to thrive in the AI age.
Check out this presentation to understand what ChatGPT is, how it will shape the future of work, and how you can prepare to take advantage.
A brief introduction to DataScience with explaining of the concepts, algorithms, machine learning, supervised and unsupervised learning, clustering, statistics, data preprocessing, real-world applications etc.
It's part of a Data Science Corner Campaign where I will be discussing the fundamentals of DataScience, AIML, Statistics etc.
Time Management & Productivity - Best PracticesVit Horky
Here's my presentation on by proven best practices how to manage your work time effectively and how to improve your productivity. It includes practical tips and how to use tools such as Slack, Google Apps, Hubspot, Google Calendar, Gmail and others.
The six step guide to practical project managementMindGenius
The six step guide to practical project management
If you think managing projects is too difficult, think again.
We’ve stripped back project management processes to the
basics – to make it quicker and easier, without sacrificing
the vital ingredients for success.
“If you’re looking for some real-world guidance, then The Six Step Guide to Practical Project Management will help.”
Dr Andrew Makar, Tactical Project Management
2. SIRALAMA ALGORİTMALARI
Bilgisayar saklama ünitelerinde tutulan verilerin performansı yüksek bir şekilde işlenebilmesi
için en kısa zamanda ulaşılabilir özellikte olması gerekir. Verilere hızlı erişmek için kullanılan
yöntemlerinden biri de sıralamadır. Veriler, sıralanmak suretiyle ilgili veriye erişilme zamanı
hızlandırılabilir. Sıralama, sayısal ortamdaki sayı veya katar verilerinin, bir anahtar kriterine
göre yapılan düzenlemedir. Anahtar, bir sayı değeri olabileceği gibi bir kelime veya bir katar
olabilir.
Verileri sıralamak maksadıyla geliştirilmiş birçok sıralama algoritması vardır. Geliştirilecek
uygulamaya bağlı olarak seçilen veri yapısı, veri kümesindeki toplam veri sayısı gibi özellikler
kullanılacak sıralama algoritmasını belirler. Sıralama yapılırken en çok kullanılan algoritmalar
seçim, araya yerleştirme, kabarcık algoritmalarıdır.
1.1. Seçim Algoritması
Seçim (selection) sıralama algoritmasında belirlenen kritere göre en uygun 1. veri, en uygun
2. Veri, … değerleri bulunarak veriler küme içinde yer değiştirilerek sıralama gerçekleştirilir.
Örneğin sayilar dizisinde tutulan 5 tane sayının büyükten küçüğe seçim algoritması
kullanarak sıralanması istenirse; önce sayilar dizisinin en büyük elemanı bulunur ve dizinin 1.
elemanı yapılır, daha sonra sayilar dizisinin 2. en büyük elemanı bulunur ve dizinin 2.
elemanı yapılır ve bu süreç dizinin son elemanı bulunana kadar devam eder. İşlem bittiğinde
veri kümesindeki elemanlar sıralanmış olur. Aşağıdaki şekilde bellekte tutulan değer
hareketleri gösterilmiştir. Algoritma her bir adımda konuma ait değerin bulunması için bir
döngü, diğer adımlara geçebilmek için bir döngü olmak üzere iç içe iki döngü kullanılmalıdır.
Şart sağlandığında dizide yer alan elmanı kaybetmemek için bir tane tampon değişken
kullanılmalıdır.
Örnek: sayilar={10, 22, 9, 35, 14}
Adım 1
sayilar
[0] 10
[1] 22
[2] 9
[3] 35
[4] 14
Dizinin 0.
Konumunda
bulunan değer
sırayla kendinden
sonraki elemanlar
ile karşılaştırılır ve
küçük olduğu
eleman ile yer
değiştirir. Böylece
dizinin en büyük
elemanı 0. konuma
Adım 2
sayilar
[0] 35
[1] 10
[2] 9
[3] 22
[4] 14
Dizinin 1.
konumunda
bulunan değer
sırayla kendinden
sonraki elemanlar
ile karşılaştırılır ve
küçük olduğu
eleman ile yer
değiştirir. Böylece
dizinin en büyük 2.
elemanı 1. konuma
Adım 3
Sayilar
[0] 35
[1] 22
[2] 9
[3] 10
[4] 14
Dizinin 2.
konumunda
bulunan değer
sırayla kendinden
sonraki elemanlar
ile karşılaştırılır ve
küçük olduğu
eleman ile yer
değiştirir. Böylece
dizinin en büyük 3.
elemanı 2. konuma
Adım 4
sayilar
[0] 35
[1] 22
[2] 14
[3] 9
[4] 10
Dizinin 3.
konumunda
bulunan değer
sırayla kendinden
sonraki elemanlar
ile karşılaştırılır ve
küçük olduğu
eleman ile yer
değiştirir. Böylece
dizinin en büyük 4.
elemanı 3. konuma
İşlem sonu
sayilar
[0] 35
[1] 22
[2] 14
[3] 10
[4] 9
Dizinin 4. (son)
konumunda
bulunan değer ile
ilgili işlem yapılmaz.
3. yerleştirilir. yerleştirilir. yerleştirilir. yerleştirilir.
Örnek 2:
void selection(int sayi[N])
{
int i,j,buffer;
for(i=0;i<N-1;i++){
for(j=i+1;j<N;j++){
if(sayi[i]<sayi[j])
{
buffer=sayi[i];
sayi[i]=sayi[j];
sayi[j]=buffer;
}
}
}
}
Ödev: 24 kişilik bir sınıfta bulunan öğrencilerin numaraları ve matematik dersinden aldıkları
puanlar bir diziye klavyeden giriliyor. Bu sınıftaki öğrencilerin numaralarını ve puanlarını,
seçim algoritması kullanarak aldıkları puana göre küçükten büyüğe sıralayıp, ekranda
gösteren programı hazırlayınız.
1.2. Araya Yerleştirme Algoritması
Araya yerleştirme (insertion) sıralama algoritmasında belirlenen kritere göre sıralanacak veri
kümesi alt kümeleri ayrılarak sıralama gerçekleştirilir. Bu algoritmada alt kümeler kümenin 1.
Elemanı ile 2. Elemanı, kümenin 1. Elemanı ile 3. Elemanı arasındaki elemanlar, kümenin 1.
Elemanı ile 4. Elemanı arasındaki elemanlar biçiminde ve son elemana kadar olmak üzere
olan birliklerdir. Algoritmanın 1. Adımında ilk küme, 2. Adımında ikinci küme şeklinde devam
4. edilerek son adımda sıralı veri kümesi elde edilir. Aşağıdaki örnekte sayilar kümesinin araya
sokma algoritması kullanılarak büyükten küçüğe sıralama işlemleri ve bellek değerleri
gösterilmiştir.
Örnek: sayilar={10, 22, 9, 35, 14}
İşlem basamakları İşlem Öncesi İşlem sonrası
1. Adım 10 22 9 35 14 22 10 9 35 14
2. Adım 22 10 9 35 14 22 10 9 35 14
3. Adım 22 10 9 35 14 35 22 10 9 14
4. Adım 35 22 10 9 14 35 22 14 10 9
Araya yerleştirme algoritması, sıralı haldeki dizilere, oluşturulmuş sıralama bozulmadan
eleman eklemek için uygun bir algoritmadır. Bu algoritmanın en önemli dezavantajı eklenen
elemanın, uygun konuma yerleştirilirken kendinden sonra gelecek elemanların küme
içerisinde kaydırma gerekliliğidir. Örneğin bu işlem dosyalar üzerinden gerçekleştiriliyorsa,
dosya için birçok defa oku/yaz işlemleri tekrarlanacaktır. Bu durum istenmeyen bir
performans kaybına neden olabilir.
Örnek 2:
void insert(int sayi[N])
{
int i,j,buffer;
for(i=1;i<N;i++)
{
buffer=sayi[i];
j=i;
while(j>0 && sayi[j-1]<buffer)
{
sayi[j]=sayi[j-1];
j--;
}
sayi[j]=buffer;
}
}
Ödev: Bir sayı dizisinde 10 adet sayı küçükten büyüğe sıralanmış olarak tutulmaktadır. Bu
sayı dizisine dışarıdan 4 tane eleman girilecek fakat her eleman sıralama bozulmadan uygun
konuma yerleştirilecektir. Bu işlemi yapan programı hazırlayınız.
5. 1.3. Kabarcık Sıralaması
Kabarcık sıralama (bubble sort) algoritmasında belirlenen kritere göre veri kümesinde
bulunan art arda bulunan elemanlar sondan başa veya baştan sona doğru birbirleriyle
karşılaştırılarak sonuca ulaşılır. Bu algoritma için seçim algoritmasında olduğu gibi iki döngü
kullanılır. İlk döngüde işlenen elemanın küme içerisindeki konumu belirlenir. 2. Döngü ile
küme içerisinde yer alan bütün elemanlara 1. döngüde yapılan işlemlerin tatbik edilmesi
sağlanır. Bu döngüler iç içedir. Aşağıdaki örnekte sayilar kümesinin kabarcık sıralama
algoritması kullanılarak büyükten küçüğe sıralama işlemleri ve bellek değerleri gösterilmiştir.
Kabarcık algoritması ilk elemandan başlatılmıştır; fakat sondan da başlatılabilir.
Örnek: sayilar={10, 22, 9, 35, 14}
Adım 1
sayilar
[0] 10
[1] 22
[2] 9
[3] 35
[4] 14
Dizinin 0.
konumunda
bulunan değer ile
komşusu
karşılaştırılır ve şart
sağlanırsa yer
değiştirilir. Sonra 1.
İle komşusu
karşılaştırılır ve şart
sağlanırsa yer
değiştirilir. Küme
sonuna kadar işlem
sürdürülür. Böylece
dizinin en küçük
elemanı yerleştirilir.
Adım 2
sayilar
[0] 22
[1] 10
[2] 35
[3] 14
[4] 9
Dizinin 1.
konumunda
bulunan değer
sırayla kendinden
sonraki elemanlar
ile karşılaştırılır ve
küçük olduğu
eleman ile yer
değiştirir. Böylece
dizinin en büyük 2.
elemanı 1. konuma
yerleştirilir.
Adım 3
sayilar
[0] 22
[1] 35
[2] 14
[3] 10
[4] 9
Dizinin 2.
konumunda
bulunan değer
sırayla kendinden
sonraki elemanlar
ile karşılaştırılır ve
küçük olduğu
eleman ile yer
değiştirir. Böylece
dizinin en büyük 3.
elemanı 2. konuma
yerleştirilir.
Adım 4
sayilar
[0] 35
[1] 22
[2] 14
[3] 10
[4] 9
Dizinin 3.
konumunda
bulunan değer
sırayla kendinden
sonraki elemanlar
ile karşılaştırılır ve
küçük olduğu
eleman ile yer
değiştirir. Böylece
dizinin en büyük 4.
elemanı 3. konuma
yerleştirilir.
İşlem sonu
sayilar
[0] 35
[1] 22
[2] 14
[3] 10
[4] 9
Örnek 2:
void bubble(int sayi[N])
{
int i,j,buffer;
for(i=0;i<N-1;i++){
for(j=0;j<N-1-i;j++){
if(sayi[j]<sayi[j+1])
{
buffer=sayi[j];
sayi[j]=sayi[j+1];
sayi[j+1]=buffer;
}
}
}
}
6. Ödev: Klavyeden girilen 100 tane sayıyı, kabarcık sıralama algoritmasını sondan başa doğru
uygulayarak, küçükten büyüğe sıralayıp ekranda gösteren programı hazırlayınız.
1.4. Alfabetik Sıralama
Sıralama yapılırken verinin içeriği yani sayı veya katar olması, karşılaştırma işlemini temelde
etkilemez. Yukarıda sayılara uygulanan sıralama algoritmaları, alfabetik sıralama için de
kullanılabilir. Fakat karşılaştırma yapılırken kullanılacak operatörün katar verilerine uygun
olması gerekir. Bu işlem için strcmp() fonksiyonu kullanılır. strcmp(), arşılaştırılan iki veri
aynıysa 0, farklı ise üzerinde bulundurduğu karakterlerin alfabetik sıradaki konumlarına göre
pozitif veya negatif bir değer döndürür.
Ödev: Klavyeden girilen 10 adet isim değerleri bir kümede tutulmaktadır. Bu isimleri alfabetik
artan (A’dan Z’ye doğru) sıralama yaparak ekranda gösteren programı seçim algoritması
kullanarak gerçekleştiriniz.
1.5. Hızlı (Quick, Pivot) Sıralama
Hızlı sıralama algoritması böl ve yönet politikasına dayanır; sıralanması istenen dizi belirli bir
karşılaştırma (pivot) değerine göre iki alt diziye ayrılır. İkiye ayırma işlemi, bu karşılaştırma
değerinden küçük olan elemanlar bir tarafta, büyük olan elemanlar diğer tarafta yerleştirilerek yapılır.
Bu işlem geriye kalan her bölme üzerinde tekrarlanır. Karşılaştırma değeri ya rastgele seçilir ya da
dizideki az sayıda elemanın değerinin ortalaması alınır. Hızlı sıralama algoritması en etkin (en hızlı
çalışan) algoritma olmasına rağmen az sayıda elemana sahip dizilerde veya zaten neredeyse sıralı
olan dizilerde tekrarlanan çağrılardan dolayı tercih edilmeyebilir. Hızlı arama algoritmasında recursive
(özyinelemeli) yapı kullanılır.
Hızlı sıralama algoritmasını kullanarak dizi elemanlarını artan şekilde sıralamak için gerekli işlem
basamakları:
1. İlk olarak sıralanacak diziyi ikiye bölmek için bir pivot (karşılaştırma değeri) seçilir. Pivot
genellikle verilen dizinin ilk elemanı ya da son elemanı olabilir. Dizide pivottan büyük
elemanlar pivotun sağına (üst), pivottan küçük elemanlar ise pivotun soluna (alt) konur. Pivot
ise oluşan bu iki kümenin ortasına (orta) yerleşir. Böylece verilen dizi birbirinden bağımsız
olarak iki alt diziye ayrılmış olur.
2. Hızlı sıralama algoritması bağımsız bu iki alt dizi (üst ve alt) içerisinde de recursive olarak
çağrılır ve bu diziler kendi içerisinde 1.adım tekrarlanarak ikiye ayrılırlar. Bu işlemler diziler
parçalanmayacak duruma gelene kadar tekrarlanır.
Alt Orta Üst
7. A Dizisi
Örneğin;
Sıralanacak dizi;
Başlangıç
Durumu;
1.Adım
2.Adım
3.Adım
4.Adım
5.Adım
1. Sıralanacak dizinin son sayısı (13) pivot elemanı (karşılaştırma) olarak seçilir. Bu eleman daha
sonraki arama ve yer değiştirme işlemlerine tabi olmaz.
2. Sol başta pivot elemanı 13’ten büyük olan ilk sayı bulunur ve sağ baştan 13’den küçük ilk sayı
bulunur. Daha sonra bu iki sayı yer değiştirilir.
3. Soldan pivot elemanından (13) büyük ve sağdan pivot elemanından küçük sayılar ortada
buluşana kadar 2.adım tekrarlanır.
4. 3.adımda soldan 13’ ten büyük ve sağdan 13’ten küçük sayılar ortada buluştuğu için (5 ve 83)
13 ile 83 yer değiştirir. Pivotun solundaki alt dizi ve sağındaki üst dizi kendi içinde aynı
teknikle sıralanır.
void quick(int sayi[], int start, int end, int pivot)
{
int location,bound;
if (start < end)
{
pivot = sayi[end];
location = start;
bound = end;
while (location < bound)
{
if (sayi[location] > pivot)
Pivot
elemanından
küçük
elemanlar
Pivot
elemanı
Pivot
elemanından
büyük
elemanlar
14 5 83 23 4 87 13
14 5 83 23 4 87 13
4 5 83 23 14 87 13
4 5 83 23 14 87 13
4 5 13 23 14 87 83
Alt dizi sıralanır. 13 Üst dizi sıralanır.
4 5 13 14 23 83 87
Pivot
Soldan 13’den
büyük ve sağdan
13’den küçük
sayılar ortada
buluştuğu veya
çakıştığı için
pivotun yeri
bulunmuş olur ve
araya yerleştirilir.