Saturday, June 8, 2024

Algorithms In Data Structure

Searching Algorithm


Linear Structure


static int search(int arr[], int n, int x)

    {
        for (int i = 0; i < n; i++) {
            // Return the index of the element if the element
            // is found
            if (arr[i] == x)
                return i;
        }
  
        // return -1 if the element is not found
        return -1;
    }



TimeComplexity - O(n) average
Space Complexity - O(1)


Binary Search


int binarySearch(int array[], int element, int low, int high) {

    if (high >= low) {
      int mid = low + (high - low) / 2;

      // check if mid element is searched element
      if (array[mid] == element)
        return mid;

      // Search the left half of mid
      if (array[mid] > element)
        return binarySearch(array, element, low, mid - 1);

      // Search the right half of mid
      return binarySearch(array, element, mid + 1, high);
    }

    return -1;
  }

Time Complexity: O(log N)
Auxiliary Space: O(1)



Ternary Search


int ternary_search(int l,int r, int x)
{
    if(r>=l)
    {
        int mid1 = l + (r-l)/3;
        int mid2 = r -  (r-l)/3;
        if(ar[mid1] == x)
            return mid1;
        if(ar[mid2] == x)
            return mid2;
        if(x<ar[mid1])
            return ternary_search(l,mid1-1,x);
        else if(x>ar[mid2])
            return ternary_search(mid2+1,r,x);
        else
            return ternary_search(mid1+1,mid2-1,x);

    }
    return -1;
}


Sorting Algorithm










Friday, March 29, 2024

Technical Writing in field of research

Research reports

A research report is a collection of contextual data, gathered through organized research, that provides new insights into a particular challenge (which, for this article, is business-related). Research reports are a time-tested method for distilling large amounts of data into a narrow band of focus.

Their effectiveness often hinges on whether the report provides:

  • Strong, well-researched evidence
  • Comprehensive analysis
  • Well-considered conclusions and recommendations

Features of a research report

Here are the standard elements of almost any research-reporting format:

  • Report summary A broad but comprehensive overview of what readers will learn in the full report. Summaries are usually no more than one or two paragraphs and address all key elements of the report. Think of the key takeaways your primary stakeholders will want to know if they don’t have time to read the full document.

  • Introduction Include a brief background of the topic, the type of research, and the research sample. Consider the primary goal of the report, who is most affected, and how far along the company is in meeting its objectives.

  • Methods A description of how the researcher carried out data collection, analysis, and final interpretations of the data. Include the reasons for choosing a particular method. The methods section should strike a balance between clearly presenting the approach taken to gather data and discussing how it is designed to achieve the report's objectives.

  • Data analysis. This section contains interpretations that lead readers through the results relevant to the report's thesis. If there were unexpected results, include here a discussion on why that might be. Charts, calculations, statistics, and other supporting information also belong here (or, if lengthy, as an appendix). This should be the most detailed section of the research report, with references for further study. Present the information in a logical order, whether chronologically or in order of importance to the report's objectives.

  • Conclusion. This should be written with sound reasoning, often containing useful recommendations. The conclusion must be backed by a continuous thread of logic throughout the report.









Intellectual property 


Intellectual Property (IP) is a set of intangible rights attached to many products, including materials, writings, technologies, processes, or programs, and may be protected under patent, trademark, and/or copyright laws,and sometimes by contract.

Intellectual property rights (IPR) refers to the legal rights given to the inventor or creator to protect his invention or creation for a certain period of time.[1] These legal rights confer an exclusive right to the inventor/creator or his assignee to fully utilize his invention/creation for a given period of time.

Intellectual property types
  • patents,
  • copyrights,
  • trademarks
  • trade secrets.
  • industrial designs

·       Types of Intellactual Property





Structure and Example of a Research Report



  • Title

This is the title of your systematic investigation. Your title should be concise and point to the aims, objectives, and findings of a research report. 

  • Table of Contents

This is like a compass that makes it easier for readers to navigate the research report.

  • Abstract

An abstract is an overview that highlights all important aspects of the research including the research method, data collection process, and research findings. Think of an abstract as a summary of your research report that presents pertinent information in a concise manner. 

An abstract is always brief; typically 100-150 words and goes straight to the point. The focus of your research abstract should be the 5Ws and 1H format – What, Where, Why, When, Who and How. 

  • Introduction

Here, the researcher highlights the aims and objectives of the systematic investigation as well as the problem which the systematic investigation sets out to solve. When writing the report introduction, it is also essential to indicate whether the purposes of the research were achieved or would require more work.

In the introduction section, the researcher specifies the research problem and also outlines the significance of the systematic investigation. Also, the researcher is expected to outline any jargons and terminologies that are contained in the research.  

  • Literature Review

A literature review is a written survey of existing knowledge in the field of study. In other words, it is the section where you provide an overview and analysis of different research works that are relevant to your systematic investigation. 

It highlights existing research knowledge and areas needing further investigation, which your research has sought to fill. At this stage, you can also hint at your research hypothesis and its possible implications for the existing body of knowledge in your field of study. 

  • An Account of Investigation

This is a detailed account of the research process, including the methodology, sample, and research subjects. Here, you are expected to provide in-depth information on the research process including the data collection and analysis procedures. 

In a quantitative research report, you’d need to provide information surveys, questionnaires and other quantitative data collection methods used in your research. In a qualitative research report, you are expected to describe the qualitative data collection methods used in your research including interviews and focus groups. 

  • Findings

In this section, you are expected to present the results of the systematic investigation. 

  • Discussion

This section further explains the findings of the research, earlier outlined. Here, you are expected to present a justification for each outcome and show whether the results are in line with your hypotheses or if other research studies have come up with similar results.

  • Conclusions

This is a summary of all the information in the report. It also outlines the significance of the entire study. 

  • References and Appendices

This section contains a list of all the primary and secondary research sources.


Research Journals 

A research journal is a periodical that contains articles written by experts in a particular field of study who report the results of research in that field. The articles are intended to be read by other experts or students of the field, and they are typically much more sophisticated and advanced than the articles found in general magazines. This guide offers some tips to help distinguish scholarly journals from other periodicals.


CHARACTERISTICS OF RESEARCH JOURNALS


PURPOSE
: Research journals communicate the results of research in the field of study covered by the journal. Research articles reflect a systematic and thorough study of a single topic, often involving experiments or surveys. Research journals may also publish review articles and book reviews that summarize the current state of knowledge on a topic.

APPEARANCE: Research journals lack the slick advertising, classified ads, coupons, etc., found in popular magazines. Articles are often printed one column to a page, as in books, and there are often graphs, tables, or charts referring to specific points in the articles.

AUTHORITY: Research articles are written by the person(s) who did the research being reported. When more than two authors are listed for a single article, the first author listed is often the primary researcher who coordinated or supervised the work done by the other authors. The most highly‑regarded scholarly journals are typically those sponsored by professional associations, such as the American Psychological Association or the American Chemical Society.

VALIDITY AND RELIABILITY
: Articles submitted to research journals are evaluated by an editorial board and other experts before they are accepted for publication. This evaluation, called peer review, is designed to ensure that the articles published are based on solid research that meets the normal standards of the field of study covered by the journal. Professors sometimes use the term "refereed" to describe peer-reviewed journals.

WRITING STYLE: Articles in research journals usually contain an advanced vocabulary, since the authors use the technical language or jargon of their field of study. The authors assume that the reader already possesses a basic understanding of the field of study.

REFERENCES: The authors of research articles always indicate the sources of their information. These references are usually listed at the end of an article, but they may appear in the form of footnotes, endnotes, or a bibliography.


What is the difference between a research paper and a research journal?

In conclusion, a journal is a collection of articles on a various academic related topics with limited words whereas a research paper is extensive and detailed study on a specific topic.

A journal can be of two types – a specialty journal and a general journal. A specialty journal will only record the business transactions that are related to that particular journal itself. The four commonly used specialty journals are sales journal, purchases journal, cash receipts journal, and cash payments journal.



Algorithms In Data Structure

Searching Algorithm Linear Structure static int search( int arr[], int n, int x)      {          for ( int i = 0 ; i < n; i++) {  ...