root > Senior Software Engineer | Scala, AWS, Kubernetes, Microservices, Python, Go, PostgreSQL

Technical Blog: Functional Programming, Cloud Architecture & DevOps


  • Home

  • Categories

  • Archives

  • Tags

  • Search

Class Library and Windows Form Application C#

Posted on 2014-05-05

Class Library and Windows Form Application C#

Read more »

translating the c if then statement

Posted on 2014-04-26

translating the c if then statement

``` example one ;

Read more »

stored procedure sql server example

Posted on 2014-04-23

stored procedure sql server example

Read more »

sql connection with stored procedure using windows authentication

Posted on 2014-04-22

sql connection with stored procedure using windows authentication

Read more »

Java ile Dinamik Programlama Kullanarak Longest Common Subsequence(LCS) çözümü

Posted on 2014-04-13

Java ile Dinamik Programlama Kullanarak Longest Common Subsequence(LCS) çözümü

    public class test {
    public static void main(String[] args) {
        String x="JESSAJVEARTE";
        String y="JACKIAVILAKO";
        int M = x.length();
        int N=y.length();
        
        int[][] cozum=new int[M+1][N+1]; // Altkümelerin harfler için ne kadar kere ortak olduğunu tuttuğum matrisim
        // LCS uzunluğunun ve tüm alt problemlerin dinamik programlamayla hesaplandığı kısım
        for(int i=M-1; i>=0; i--) //Dizi elemanlarını tersten gelerek kontrol ediyorum
        {
            for(int j=N-1; j>=0; j--)
            {
                if(x.charAt(i)==y.charAt(j))
                    cozum[i][j]=cozum[i+1][j+1]+1;
                // eşleşme varsa bu harfin olduğu fazladan bir alt küme daha olduğunu belirtmek için matris üzerinde 
                //bu harflerin bulunduğu konumdaki değeri 1 artırıyorum
                else
                    cozum[i][j]=Math.max(cozum[i+1][j], cozum[i][j+1]);
                // Eşleşme yoksa, o ana kadarki en uzun altküme uzunluğunu en uzun altküme olarak alıyorum
                
            }//for
        }//for
        
        // cozum[][] matrisini kullanarak LCS nin bulunması
        int i=0, j=0;
        String result="";
        while(i<M &&j<N)
        {
            if(x.charAt(i)==y.charAt(j))
            {
            // i ve j değerlerine göre x, y stringleri üzerinde dolaşarak eşleşme olup olmadığını kontrol ediyorum
                result+=y.charAt(j);
                i++;
                j++;
            }//if
            else if(cozum[i+1][j]>=cozum[i][j+1])
            {
                //her zaman en uzun alt kümeye gidebilmek için bu kontrolleri yapıyorum
                i++;
            }
            else
                j++;
        }//while
        
        System.out.println("LCS lenght: "+result.length());
        System.out.println("LCS:   : "+result);
    }
    }
Read more »

Remove DIV from a webpage for webview android using Jsoup

Posted on 2014-04-07

Remove DIV from a webpage for webview android using Jsoup

Read more »

select by "name" in jsoup

Posted on 2014-03-25

select by “name” in jsoup

Read more »

marble automata c++

Posted on 2014-03-19

marble automata c++

Read more »

c# midterm1 exercises from deitel

Posted on 2014-03-18

c# midterm1 exercises from deitel

```c++ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;

Read more »

try catch finally and arrays in csharp

Posted on 2014-03-12

try catch finally and arrays in csharp

```c++ using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms;

Read more »
1 … 15 16 17 … 21
teaddict

teaddict

205 posts
37 categories
645 tags
RSS
GitHub
© 2025 teaddict