Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

reduction

Reducing on array in OpenMP

August 1, 2023 by Tarik

Yes it is possible to do an array reduction with OpenMP. In Fortran it even has construct for this. In C/C++ you have to do it yourself. Here are two ways to do it. The first method makes private version of S for each thread, fill them in parallel, and then merges them into S … Read more

Categories c++ Tags c++, multithreading, openmp, parallel-processing, reduction Leave a comment

Class Scheduling to Boolean satisfiability [Polynomial-time reduction]

May 27, 2023 by Tarik

I am going to try and first formalize the problem, and then attempt to reduce it to SAT. Define the class scheduling problem as: Input = { S1,S2,….,Sn | Si = {(x_i1, y_i1), (x_i2, y_i2) , … , (x_ik, y_ik) | 0 <= x_ij < y_ij <= M } } Informally: The input is a … Read more

Categories c Tags algorithm, c++, reduction, sat, scheduling Leave a comment

General rules for simplifying SQL statements

February 24, 2023 by Tarik

To state it different: Having a (complex) query with JOINs, SUBSELECTs, UNIONs is it possible (or not) to reduce it to a simpler, equivalent SQL statement, which is producing the same result, by using some transformation rules? This answer was written in 2009. Some of the query optimization tricks described here are obsolete by now, … Read more

Categories sql Tags complexity-theory, logic, reduction, sql Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa